1094 {
1095 bool accepted = true;
1097 {
1099 {
1101 if (
EntityAI.CastTo(targetEntity, action_data.m_Target.GetObject()))
1102 {
1103 InventoryLocation targetIl = new InventoryLocation();
1104 targetEntity.GetInventory().GetCurrentInventoryLocation(targetIl);
1105
1106
1107 if (!
GetGame().AddInventoryJunctureEx(action_data.m_Player, targetEntity, targetIl,
true, 10000))
1108 {
1109 accepted = false;
1110 }
1111 else
1112 {
1113 action_data.m_ReservedInventoryLocations.Insert(targetIl);
1114 }
1115 }
1116 }
1117 }
1118
1119 return accepted;
1120 }
DayZPlayerInstanceType
defined in C++
proto native CGame GetGame()