22 if (item.GetQuantity() > 1)
29 ItemBase headgear =
ItemBase.Cast(targetPlayer.FindAttachmentBySlotName(
"Headgear" ));
32 bool headgear_restricted;
33 headgear_restricted = headgear.ConfigGetBool(
"noMask" );
34 if (headgear_restricted)
52 MouthRag m_Gag = MouthRag.Cast(ntarget.GetInventory().CreateAttachmentEx(
"MouthRag",
InventorySlots.MASK));
56 m_Gag.SetHealth01(
"",
"", action_data.
m_MainItem.GetHealth01(
"",
""));
57 ntarget.CheckForGag();
59 action_data.
m_MainItem.TransferModifiers(ntarget);
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
bool CanReceiveAction(ActionTarget target)
protected int m_StanceMask
class ActionTargets ActionTarget
ref ActionTarget m_Target
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
bool IsWearingMask(PlayerBase player)
protected int m_CommandUID
protected m_CallbackClass
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.