26 string animSource =
"";
29 if (player && player.GetCommand_Vehicle())
31 if (
Class.
CastTo(car, player.GetCommand_Vehicle().GetTransport()))
33 int crewIdx = car.CrewMemberIndex(player);
51 float animationPhaseInside = car.GetAnimationPhase(animSource);
61 super.OnStartServer(action_data);
75 string animSource =
"";
78 if (player && player.GetCommand_Vehicle())
80 car =
CarScript.Cast(player.GetCommand_Vehicle().GetTransport());
83 int crewIdx = car.CrewMemberIndex(player);
90 car.ForceUpdateLightsStart();
91 car.SetAnimationPhase(animSource, phase);
97 super.OnEndServer(action_data);
101 if (player && player.GetCommand_Vehicle())
103 car =
CarScript.Cast(player.GetCommand_Vehicle().GetTransport());
108 car.ForceUpdateLightsEnd();
116 Error(
"[WARNING] m_Car and m_AnimSource are left for backwards compatibility to not crash mods that are using it, but should no longer be used.");
class ActionTargets ActionTarget
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void FillCommandUIDPerCrewIdx(int crewIdx0, int crewIdx1, int crewIdx2, int crewIdx3)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
int m_CommandUIDPerCrewIdx[4]
override void CreateConditionComponents()
override bool HasTarget()
void FillCommandUIDPerCrewIdx(int evenCrewIdx0, int unevenCrewIdx1)
override bool CanBeUsedInVehicle()
override void OnStartServer(ActionData action_data)
override void OnEndServer(ActionData action_data)
override void OnEnd(ActionData action_data)
void ActionInteractBase()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override int GetCarDoorsState(string slotType)
override string GetAnimSourceFromSelection(string selection)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Super root of all classes in Enforce script.
DayZPlayerConstants
defined in C++
void Error(string err)
Messagebox with error message.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.