41 string child_name =
"";
49 for (
int i = 0; i < count; i++)
53 if (
GetGame().ConfigGetInt(
path +
" " + child_name +
" value" ) )
55 resources.Insert( child_name );
60 string itemType = resources.Get(0);
64 action_data.
m_Player.ServerReplaceItemInHandsWithNew(lambda);
79 super.CopyOldPropertiesToNew(old_item, new_item);
86 Print(
"UnboxLambda::SetupNewMagazine new_item=" + new_item +
" count=" +
m_ItemCount);
93 Print(
"UnboxLambda::SetupNewItem new_item=" + new_item +
" count=" +
m_ItemCount);
99 super.OnSuccess(new_item);
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
const int ECE_PLACE_ON_SURFACE
protected ActionData m_ActionData
ref CABase m_ActionComponent
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool HasTarget()
override bool HasProneException()
protected int m_CommandUIDProne
protected int m_CommandUID
protected m_CallbackClass
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
Super root of all classes in Enforce script.
base class for transformation operations (creating one item from another)
override void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
override void OnSuccess(EntityAI new_item)
void UnboxLambda(EntityAI old_item, string new_item_type, PlayerBase player, int count)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.