41 CargoBase cargo = item.GetInventory().GetCargo();
46 float dmg = item.GetHealth01(
"",
"");
51 paper.SetHealth01(
"",
"", dmg - 0.25 );
59 cargo_item.GetInventory().GetCurrentInventoryLocation(il_src);
61 if(
GetGame().IsDedicatedServer())
62 action_data.m_Player.ServerTakeToDst( il_src, il_dst );
64 action_data.m_Player.LocalTakeToDst( il_src, il_dst );
class ActionTargets ActionTarget
const int ECE_PLACE_ON_SURFACE
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionContinuousBase()
override bool HasTarget()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override void OnFinishProgressServer(ActionData action_data)
override void CreateActionComponent()
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
static bool SetGroundPosByOwner(EntityAI owner, notnull EntityAI item, out InventoryLocation ground)
script counterpart to engine's class Inventory
DayZPlayerConstants
defined in C++
proto native CGame GetGame()