71 {
72 super.EEKilled(killer);
73
74 InventoryLocation inventoryLocation = new InventoryLocation();
75 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
76 if (!inventoryLocation || !inventoryLocation.
IsValid())
77 return;
78
80 {
81 PlayerBase player = PlayerBase.Cast(inventoryLocation.
GetParent());
82 if (player && player.IsRestrained())
83 {
84 player.SetRestrained(false);
85 MiscGameplayFunctions.TransformRestrainItem(this, null, player, player);
86 }
87 }
88 }
InventoryLocationType
types of Inventory Location
proto native bool IsValid()
verify current set inventory location
proto native EntityAI GetParent()
returns parent of current inventory location
proto native int GetType()
returns type of InventoryLocation