Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
surrenderdummyitem.c
Go to the documentation of this file.
1class SurrenderDummyItem extends DummyItem
2{
4
6 {
7 }
8
9 override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
10 {
11 super.OnItemLocationChanged(old_owner,new_owner);
12
13 if (old_owner)
14 {
15 PlayerBase pb;
16 if (Class.CastTo(pb, old_owner))
17 {
18 EmoteManager em = pb.GetEmoteManager();
19 if (em)
20 {
21 em.ForceSurrenderState(false);
22 }
23 }
24
25 DeleteSafe();
26 }
27 }
28
29 override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
30 {
31 return false;
32 }
33}
Super root of all classes in Enforce script.
Definition enscript.c:11
void ~SurrenderDummyItem()
PlayerBase m_player
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
InventoryLocation.
void EmoteManager(PlayerBase player)