37 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
45 EntityAI attachmentEntity = building.FindAttachmentBySlotName(relatedSlotName);
46 if (!attachmentEntity)
50 if (attachment && attachment.IsExternalLockType())
68 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
69 if ( doorIndex != -1 )
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
bool IsBuilding(ActionTarget target)
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
void ActionContinuousBase()
ref ActionTarget m_Target
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()
ref TStringArray m_RelatedInventorySlotNames
Lock compatibility type, now in door config. Lockpick enabled by default if undefined.
AdditionalDoorInfo GetDoorInfo(int doorIdx)
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.