2class BotEventEntityAttached : BotEventBase { };
4class BotEventEntityDetached : BotEventBase { };
6class BotTestAttachAndDropCycle
extends BotStateBase
9 ref BotTestAttachAndDropCycle_Detaching m_Detaching;
10 ref BotTestAttachAndDropCycle_Attaching m_Attaching;
12 void BotTestAttachAndDropCycle (Bot bot = NULL, BotStateBase parent = NULL)
15 m_FSM =
new BotFSM(
this);
17 m_Detaching =
new BotTestAttachAndDropCycle_Detaching(m_Bot,
this);
18 m_Attaching =
new BotTestAttachAndDropCycle_Attaching(m_Bot,
this);
21 BotEventBase __EntAtt__ =
new BotEventEntityAttached;
22 BotEventBase __EntDet__ =
new BotEventEntityDetached;
25 m_FSM.AddTransition(
new BotTransition( m_Detaching, __EntDet__, m_Attaching));
26 m_FSM.AddTransition(
new BotTransition( m_Attaching, __EntAtt__, m_Detaching));
28 m_FSM.SetInitialState(m_Detaching);
31 override void OnEntry (BotEventBase e)
40 override void OnExit (BotEventBase e)
53class BotTestAttachAndDropCycle_Detaching
extends BotStateBase
57 override void OnEntry (BotEventBase e)
62 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
64 override void OnExit (BotEventBase e)
77 InventoryLocation loc =
new InventoryLocation;
89class BotTestAttachAndDropCycle_Attaching
extends BotStateBase
93 override void OnEntry (BotEventBase e)
98 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
100 override void OnExit (BotEventBase e)
115 InventoryLocation loc =
new InventoryLocation;
HandStateEquipped OnEntry
InventoryLocationType
types of Inventory Location
enum ProcessDirectDamageFlags m_Owner
class WeaponChambering_Chamber_OnEntry extends WeaponChambering_Base OnExit
proto native GameInventory GetInventory()
proto native EntityAI CreateAttachment(string typeName)
Create Entity of specified type as attachment of entity.
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
override void OnEntry(HandEventBase e)
proto native int GetType()
returns type of InventoryLocation
override void OnExit(WeaponEventBase e)