1076 {
1077 bool accepted = true;
1079 {
1081 {
1083 if (
EntityAI.CastTo(targetEntity, action_data.m_Target.GetObject()))
1084 {
1085 InventoryLocation targetIl = new InventoryLocation();
1086 targetEntity.GetInventory().GetCurrentInventoryLocation(targetIl);
1087
1088
1089 if (!
g_Game.AddInventoryJunctureEx(action_data.m_Player, targetEntity, targetIl,
true, 10000, action_data))
1090 {
1091 accepted = false;
1092 }
1093 else
1094 {
1095 action_data.m_ReservedInventoryLocations.Insert(targetIl);
1096 }
1097 }
1098 }
1099 }
1100
1101 return accepted;
1102 }
DayZPlayerInstanceType
defined in C++