User Tools

Site Tools


dragengine:modules:dragonscript:behavior_actoraiaction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dragengine:modules:dragonscript:behavior_actoraiaction [2025/05/11 13:41] – [aiAction.notify] dragonlorddragengine:modules:dragonscript:behavior_actoraiaction [2026/09/26 21:47] (current) – [Element Class Properties] dragonlord
Line 22: Line 22:
 ====== Element Class Properties ====== ====== Element Class Properties ======
 Element class properties have the prefix ''aiAction.''. Element class properties have the prefix ''aiAction.''.
 +
 +===== action =====
 +
 +Name of action factory to use to create action instance. Name is looked up using BaseGameApp.getLoader().getPersistency().getFactoryNamed(). The factory must inherit from ECBehaviorActorAIAction.ActionFactory. The following factories are added by BaseGameApp:
 +
 +  * BaseActorAction: Empty action doing nothing.
 +  * BAAFirstPerson: First person actor action.
 +  * BAAFirstPersonVR: First person actor action for VR use.
 +  * BAAVehicle: Vehicle actor action.
 +  * BAAStateMachine: Actor action using state machine defined by [[behavior_statemachine|ECBehaviorStateMachine]].
 +
 +To use custom factories add using Persistency.addFactory() using the name you like to use. Names are not required to match the class name but doing so makes it easier to find the responsible class
 +
 +  * Full name: ''aiAction.action''
 +  * Type: string
 +  * Default Value: ''BAAFirstPerson''
 +  * Example (*.deeclass) <code xml><string name='aiAction.action'>BAAStateMachine</string></code>
 +
 +===== ai =====
 +
 +Name of AI factory to use to create action instance. Name is looked up using BaseGameApp.getLoader().getPersistency().getFactoryNamed(). The factory must inherit from ECBehaviorActorAIAction.AIFactory. The following factories are added by BaseGameApp:
 +
 +  * BaseActorAI: Empty AI doing nothing.
 +  * BAAIBehaviorTree: Actor AI using behavior tree defined by [[behavior_behaviortree|ECBehaviorBehaviorTree]].
 +
 +To use custom factories add using Persistency.addFactory() using the name you like to use. Names are not required to match the class name but doing so makes it easier to find the responsible class
 +
 +  * Full name: ''aiAction.ai''
 +  * Type: string
 +  * Default Value: ''BAAIBehaviorTree''
 +  * Example (*.deeclass) <code xml><string name='aiAction.action'>BaseActorAI</string></code>
  
 ====== Events ====== ====== Events ======
dragengine/modules/dragonscript/behavior_actoraiaction.txt · Last modified: by dragonlord