82 Print(
"Searching...");
144 GetPlayerOwner().GetInputController().OverrideMovementSpeed(
true, 1);
145 GetPlayerOwner().GetInputController().OverrideMovementAngle(
true, 1);
149 GetPlayerOwner().GetInputController().OverrideMovementSpeed(
false, 0);
150 GetPlayerOwner().GetInputController().OverrideMovementAngle(
false, 0);
167 GetPlayerOwner().GetInputController().OverrideMovementSpeed(
false, 0);
168 GetPlayerOwner().GetInputController().OverrideMovementAngle(
false, 0);
218 vector pos = bot.GetPosition();
225 float min_dist = 1234567.0;
227 int c = objects.Count();
228 for (
int i = 0; i < c; i++)
244 botDebugPrint(
"[bot] + " + bot +
" BotSelectNearestTarget idx=" + min_index +
" dist=" + min_dist +
" obj=" + o);
245 return Man.Cast( objects.Get(min_index) );
ref ActionTarget m_Target
void botDebugPrint(string s)
Man BotSelectNearestTarget(EntityAI bot)
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
void BotEventBase(PlayerBase p=NULL, EntityAI e=NULL)
represents event that triggers transition from state to state
Bot Finite State Machine (Hierarchical)
void BotHunt(Bot bot=NULL, BotStateBase parent=NULL)
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)
override void OnEntry(BotEventBase e)
override void OnAbort(BotEventBase e)
PlayerBase GetPlayerOwner()
ref BotHunt_Tracking m_Tracking
override void OnExit(BotEventBase e)
ref BotHunt_Hunting m_Hunting
Bot m_Bot
man that this state belongs to
represent weapon state base
proto native void GetObjectsAtPosition(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in circle "radius" around position "pos".
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
class JsonUndergroundAreaTriggerData GetPosition