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);
73 string animSource =
"";
76 if (player && player.GetCommand_Vehicle())
78 car =
CarScript.Cast(player.GetCommand_Vehicle().GetTransport());
81 int crewIdx = car.CrewMemberIndex(player);
88 car.ForceUpdateLightsStart();
89 car.SetAnimationPhase(animSource, phase);
97 if (player && player.GetCommand_Vehicle())
99 car =
CarScript.Cast(player.GetCommand_Vehicle().GetTransport());
104 car.ForceUpdateLightsEnd();
112 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.");
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected int m_StanceMask
class ActionTargets ActionTarget
protected int m_CommandUIDPerCrewIdx[4]
override void OnEndServer(ActionData action_data)
protected bool m_IsOpening
override void CreateConditionComponents()
protected void FillCommandUIDPerCrewIdx(int evenCrewIdx0, int unevenCrewIdx1)
override void OnEnd(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
protected void FillCommandUIDPerCrewIdx(int crewIdx0, int crewIdx1, int crewIdx2, int crewIdx3)
override bool CanBeUsedInVehicle()
override void OnStartServer(ActionData action_data)
protected int m_CommandUID
override int GetCarDoorsState(string slotType)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override string GetAnimSourceFromSelection(string selection)
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
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.
proto native int Length()
Returns length of string.