DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdatePossibleActions()

override void VehicleHornShortActionInput::UpdatePossibleActions ( PlayerBase player,
ActionTarget target,
ItemBase item,
int action_condition_mask )
inlineprivate

См. определение в файле ActionInput.c строка 697

698 {
699 if (ForceActionCheck(player))
700 {
701 m_SelectAction = m_ForcedActionData.m_Action;
702 return;
703 }
704
705 m_SelectAction = null;
706 array<ActionBase_Basic> possibleActions;
707 ActionBase action;
708 int i;
709
710 m_MainItem = null;
711 if (player && player.IsInVehicle())
712 {
713 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
714 if (vehCommand)
715 {
716 Transport trans = vehCommand.GetTransport();
717 if (trans)
718 {
719 targetNew = new ActionTarget(trans, null, -1, vector.Zero, -1);
720 ForceActionTarget(targetNew);
721 }
722 }
723
724 if (!targetNew)
725 {
726 ClearForcedTarget();
727 }
728 }
729
730 target = m_ForcedTarget;
731 m_Target = m_ForcedTarget;
732
733 if (target && target.GetObject())
734 {
735 target.GetObject().GetActions(this.Type(), possibleActions);
736 if (possibleActions)
737 {
738 for (i = 0; i < possibleActions.Count(); i++)
739 {
740 action = ActionBase.Cast(possibleActions.Get(i));
741 if (action.Can(player, target, m_MainItem, action_condition_mask))
742 {
743 m_SelectAction = action;
744 return;
745 }
746 }
747 }
748 }
749 }
void ActionBase()
Определения ActionBase.c:82
NoIndicationActionInputBase m_SelectAction
ref ActionTarget m_Target
Определения ActionInput.c:15
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения ActionTargets.c:125
class BaitData m_MainItem
string Type
Определения JsonDataContaminatedArea.c:11
proto native Transport GetTransport()
ref ActionTarget targetNew
Определения ActionInput.c:685

Перекрестные ссылки ActionBase(), ActionTarget(), HumanCommandVehicle::GetTransport(), m_MainItem, m_SelectAction, m_Target, targetNew, Type и vector::Zero.