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

◆ UpdatePossibleActions()

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

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

861 {
862 if (ForceActionCheck(player))
863 {
864 m_SelectAction = m_ForcedActionData.m_Action;
865 return;
866 }
867
868 m_SelectAction = null;
869 array<ActionBase_Basic> possibleActions;
870
871 m_MainItem = null;
872 if (player && player.IsInVehicle())
873 {
874 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
875 if (vehCommand)
876 {
877 Transport trans = vehCommand.GetTransport();
878 if (trans)
879 {
880 targetNew = new ActionTarget(trans, null, -1, vector.Zero, -1);
881 ForceActionTarget(targetNew);
882 }
883 }
884
885 if (!targetNew)
886 ClearForcedTarget();
887 }
888
889 target = m_ForcedTarget;
890 m_Target = m_ForcedTarget;
891
892 if(target && target.GetObject())
893 {
894 target.GetObject().GetActions(this.Type(), possibleActions);
895 int possibleActionsCount = possibleActions.Count();
896 if(possibleActions)
897 {
898 for (int i = 0; i < possibleActionsCount; ++i)
899 {
900 ActionBase action = ActionBase.Cast(possibleActions.Get(i));
901 if (action.Can(player, target, m_MainItem, action_condition_mask))
902 {
903 m_SelectAction = action;
904 return;
905 }
906 }
907 }
908 }
909 }
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:851

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