37 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
50 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
51 if ( doorIndex != -1 )
63 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem,
APPLIED_DMG);
class ActionTargets ActionTarget
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
ref CCIBase m_ConditionItem
bool IsBuilding(ActionTarget target)
ref CCTBase m_ConditionTarget
void ActionContinuousBase()
void UnlockDoor(ActionTarget target)
override void OnFinishProgressServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override bool IsLockTargetOnUse()
override void CreateActionComponent()
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.
int GetLockCompatibilityType(int doorIdx)
Which door is compatible with which key (door idx supplied). Bitwise.
proto native bool IsDoorLocked(int index)
When the door is locked.
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.
Super root of all classes in Enforce script.
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.