DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEDelete()

override void EEDelete ( EntityAI parent)
private

См. определение в файле ItemBase.c строка 1268

1269 {
1270 super.EEDelete(parent);
1271 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
1272 if (player)
1273 {
1274 OnInventoryExit(player);
1275
1276 if (player.IsAlive())
1277 {
1278 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
1279 if (r_index >= 0)
1280 {
1282 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
1283
1284 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
1285 int r_type = r_il.GetType();
1286 if (r_type == InventoryLocationType.CARGO || r_type == InventoryLocationType.PROXYCARGO)
1287 {
1288 r_il.GetParent().GetOnReleaseLock().Invoke(this);
1289 }
1290 else if (r_type == InventoryLocationType.ATTACHMENT)
1291 {
1292 r_il.GetParent().GetOnAttachmentReleaseLock().Invoke(this, r_il.GetSlot());
1293 }
1294
1295 }
1296
1297 player.RemoveQuickBarEntityShortcut(this);
1298 }
1299 }
1300 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
void OnInventoryExit(Man player)
Event called on item when it is removed from the player(Man) inventory, passes the old owner as a par...
Определения ItemBase.c:3914
proto native EntityAI GetParent()
returns parent of current inventory location
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation
InventoryLocation.
Определения InventoryLocation.c:30
Определения PlayerBaseClient.c:2

Перекрестные ссылки InventoryLocation::GetParent(), InventoryLocation::GetSlot(), InventoryLocation::GetType() и ItemBase::OnInventoryExit().