User Tools

Site Tools


mod-management-functions

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
mod-management-functions [2020/07/08 10:37]
maxime
mod-management-functions [2020/07/17 14:35] (current)
maxime
Line 90: Line 90:
 } }
 myMod:​registerPrefabComponent(prefabPath,​ componentData) myMod:​registerPrefabComponent(prefabPath,​ componentData)
 +</​code>​
 +
 +----
 +
 +===== registerBehaviorTree =====
 +
 +Registers a new behavior tree (see [[:​behavior-trees|Behavior Trees]] for a complete explanation)
 +
 +''​void **myMod:​registerBehaviorTree**(//​behaviorTree//​)''​
 +
 +^ Name ^ Type ^ Description ^
 +| //''​behaviorTree''//​ | ''​table''​ | the table defining the behavior tree's variables and node tree |
 +
 +==== Example ====
 +
 +<code lua>
 +myMod:​registerBehaviorTree({
 +    Id = "​MY_CUSTOM_BEHAVIOR_TREE",​
 +    VariableList = {
 +        ...
 +    },
 +    Root = {
 +        ...
 +    }
 +})
 </​code>​ </​code>​
  
mod-management-functions.txt ยท Last modified: 2020/07/17 14:35 by maxime