This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| dragengine:modules:dragonscript:behavior_actoraiaction [2025/05/11 13:41] – [aiAction.notify] dragonlord | dragengine: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 '' | Element class properties have the prefix '' | ||
| + | |||
| + | ===== 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: | ||
| + | * BAAFirstPerson: | ||
| + | * BAAFirstPersonVR: | ||
| + | * BAAVehicle: Vehicle actor action. | ||
| + | * BAAStateMachine: | ||
| + | |||
| + | 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: '' | ||
| + | * Type: string | ||
| + | * Default Value: '' | ||
| + | * Example (*.deeclass) <code xml>< | ||
| + | |||
| + | ===== 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: | ||
| + | * BAAIBehaviorTree: | ||
| + | |||
| + | 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: '' | ||
| + | * Type: string | ||
| + | * Default Value: '' | ||
| + | * Example (*.deeclass) <code xml>< | ||
| ====== Events ====== | ====== Events ====== | ||