29 int doorIndex = building.
GetDoorIndex(target.GetComponentIndex());
44 super.OnStartServer(action_data);
47 if (
Class.
CastTo(building, action_data.m_Target.GetObject()))
49 int doorIndex = building.
GetDoorIndex(action_data.m_Target.GetComponentIndex());
62 super.OnEndServer(action_data);
65 m_NoisePar.LoadFromPath(
"CfgVehicles SurvivorBase NoiseActionDefault");
69 if (action_data.m_Player)
class ActionTargets ActionTarget
class NoiseSystem NoiseParams()
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
ref CCIBase m_ConditionItem
bool IsBuilding(ActionTarget target)
ref CCTBase m_ConditionTarget
override bool IsLockTargetOnUse()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndServer(ActionData action_data)
ref NoiseParams m_NoisePar
override void CreateConditionComponents()
override void OnStartServer(ActionData action_data)
void ActionInteractBase()
proto native void CloseDoor(int index)
Attempts to close the door.
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.
bool CanDoorBeClosed(int doorIndex)
Super root of all classes in Enforce script.
static float GetNoiseReduction(Weather weather)
proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.