ORK Framework  2.26.1
API Documentation
ORKFramework.AI.MoveAIFlee Class Reference
Inheritance diagram for ORKFramework.AI.MoveAIFlee:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
bool IsFlee (Combatant combatant, Combatant target)
 
bool IsInRange (Vector3 startPosition, Combatant combatant)
 
bool IsOutOfRange (Vector3 startPosition, Combatant combatant)
 
void Use (MoveAIComponent moveAI)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

bool enabled = false
 
float fleeTime = 2
 
bool preventCornered = false
 
bool useRange = false
 
Range range
 
bool useStopRange = false
 
Range stopRange
 
Needed needed = Needed.One
 
MoveCondition [] condition = new MoveCondition[0]
 

Member Function Documentation

◆ SetData()

override void ORKFramework.AI.MoveAIFlee.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.