4 ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot
m_Move;
11 m_Move =
new BotTestItemMoveBackAndForth_MoveFromSlotToSlot(
m_Bot,
this);
36 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
60class BotTestItemMoveBackAndForth_MoveFromSlotToSlot
extends BotStateBase
96 if (
m_Entity.GetInventory().GetCurrentInventoryLocation(loc))
void botDebugPrint(string s)
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
InventoryLocationType
types of Inventory Location
represents event that triggers transition from state to state
Bot Finite State Machine (Hierarchical)
ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot m_Move
void BotStateBase(Bot bot=NULL, BotStateBase parent=NULL)
nested state machine (or null)
ref BotFSM m_FSM
hierarchical parent state of this state (or null)
override void OnUpdate(float dt)
void BotTestItemMoveBackAndForth(Bot bot=NULL, BotStateBase parent=NULL)
override void OnEntry(BotEventBase e)
override void OnAbort(BotEventBase e)
override void OnExit(BotEventBase e)
int GetNextSlot(int curr)
Bot m_Bot
man that this state belongs to
represent weapon state base
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation
const int INVALID
Invalid slot (-1)
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
void Error(string err)
Messagebox with error message.