43 if (
Class.
CastTo(new_item,action_data.m_Player.GetInventory().CreateAttachmentEx(
"BurlapSackCover",
InventorySlots.HEADGEAR)))
45 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,
true,
false,
true);
46 action_data.m_MainItem.Delete();
class ActionTargets ActionTarget
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionContinuousBase()
bool IsWearingHeadgear(PlayerBase player)
override bool HasTarget()
override void OnFinishProgressServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
void ActionCoverHeadSelf()
override void CreateActionComponent()
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.