4 ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot m_Move;
6 void BotTestItemMoveBackAndForth (
Bot bot = NULL,
BotStateBase parent = NULL)
11 m_Move =
new BotTestItemMoveBackAndForth_MoveFromSlotToSlot(m_Bot,
this);
17 m_FSM.AddTransition(
new BotTransition( m_Move, __EntAtt__, m_Move));
19 m_FSM.SetInitialState(m_Move);
36 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
38 m_Move.m_WaitingForSlot = loc.GetSlot();
54 override void OnUpdate (
float dt)
60class BotTestItemMoveBackAndForth_MoveFromSlotToSlot
extends BotStateBase
79 int GetNextSlot (
int curr)
83 if (curr == m_mskSlot)
89 override void OnUpdate (
float dt)
96 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
100 if (loc.GetSlot() == m_WaitingForSlot)
102 int nextSlot = GetNextSlot(m_WaitingForSlot);
105 m_WaitingForSlot = nextSlot;
void botDebugPrint(string s)
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
represents event that triggers transition from state to state
Bot Finite State Machine (Hierarchical)
represent weapon state base
provides access to slot configuration
void Error(string err)
Messagebox with error message.
HandStateEquipped OnEntry
InventoryLocationType
types of Inventory Location
enum ProcessDirectDamageFlags m_Owner
class WeaponChambering_Chamber_OnEntry extends WeaponChambering_Base OnExit