ORK Framework  2.22.0
API Documentation
ORKFramework.Behaviours.MoveAIComponent Class Reference
Inheritance diagram for ORKFramework.Behaviours.MoveAIComponent:
ORKFramework.Events.IEventStarter

Public Member Functions

void ChangeMoveAI (int moveID)
 Changes the used move AI. More...
 
bool CanUse ()
 Checks if the move AI can be used. More...
 
void LeaderChanged (Combatant oldLeader, Combatant newLeader)
 
bool IsTargetLost ()
 
bool IsInMoveRange ()
 
bool IsOutOfMoveRange ()
 
void SetMode (MoveAIMode mode)
 
bool SetActionTarget (BaseAction action)
 
bool ReachedActionTarget ()
 
void ActionFinished (List< Combatant > targets)
 
void DamagedBy (Combatant combatant)
 
bool IsTarget (Combatant target)
 
void SetTarget (Combatant target, MoveAIMode mode)
 
void SetTarget (GameObject target, MoveAIMode mode)
 
void ClearTarget (bool remember)
 
void UpdateTargetPosition (bool force)
 
void SetMovePosition (Vector3 position)
 
void Stop ()
 
void CheckStuck ()
 
void EventEnded ()
 
void DontDestroy ()
 
void OnSceneLoaded ()
 
void SetWaypoints (GameObject[] wp, bool randomOrder)
 
void SetWaypoints (List< GameObject > wp, bool randomOrder)
 
void ClearWaypoints ()
 

Public Attributes

Combatant combatant
 
int originalMoveID = 0
 
MoveAISetting settings
 
MoveAIUseMode useMode = MoveAIUseMode.Auto
 
MoveAIMode mode = MoveAIMode.Idle
 
bool blocked = false
 
Vector3 startPosition = Vector3.zero
 
float detectionTimeout = -1
 
float targetPosTimeout = -1
 
float targetLostTimeout = -1
 
float fleeTimeout = -1
 
MoveAIMode lastMode = MoveAIMode.Idle
 
Vector3 movePosition = Vector3.zero
 

Properties

Range HuntStopRange [get]
 
Range CautionStopRange [get]
 
GameObject TargetObject [get]
 
Combatant TargetCombatant [get]
 
List< CombatantDetectedTargets [get]
 
GameObject GameObject [get]
 
- Properties inherited from ORKFramework.Events.IEventStarter
GameObject GameObject [get]
 

Member Function Documentation

bool ORKFramework.Behaviours.MoveAIComponent.CanUse ( )

Checks if the move AI can be used.

Returns
true if the move AI can be used, otherwise false.
void ORKFramework.Behaviours.MoveAIComponent.ChangeMoveAI ( int  moveID)

Changes the used move AI.

Parameters
moveIDThe ID of the move AI that will be used.