100 {
101 if (CanTakeToInventory())
102 {
104 if (ent)
105 {
107 {
108 InventoryLocation il = new InventoryLocation;
111 {
112 SplitItemUtils.TakeOrSplitToInventoryLocation( PlayerBase.Cast(
GetGame().
GetPlayer() ), il );
113 #ifdef PLATFORM_CONSOLE
115 {
117 }
118 #endif
119 return true;
120 }
121 }
122 }
123 }
124 return false;
125 }
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory
override ScriptCallQueue GetCallQueue(int call_category)
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
proto native bool IsValid()
verify current set inventory location
override bool IsTakeable()
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
void PrepareOwnedTooltipAfterItemTransfer()
proto native CGame GetGame()