26        if (item.GetQuantity() > 1)
 
   31            ItemBase headgear = 
ItemBase.Cast(player.FindAttachmentBySlotName( 
"Headgear" ));
 
   34                bool headgear_restricted;
 
   35                headgear_restricted = headgear.ConfigGetBool( 
"noMask" );
 
   36                if (headgear_restricted)
 
 
   52            MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,
true,
false,
true);
 
   54            action_data.m_MainItem.TransferModifiers(action_data.m_Player);
 
   55            action_data.m_MainItem.Delete();
 
 
 
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
 
ref CCIBase m_ConditionItem
 
ref CCTBase m_ConditionTarget
 
void ActionContinuousBase()
 
bool IsWearingMask(PlayerBase player)
 
override void OnFinishProgressServer(ActionData action_data)
 
override void CreateConditionComponents()
 
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget()
 
Super root of all classes in Enforce script.
 
provides access to slot configuration
 
DayZPlayerConstants
defined in C++
 
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.