behaviortreenetworkutility::registerbehaviortreeaction()
Registers behavior tree action. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
behaviortreenetworkutility::registerbehaviortreeaction(actionname, startfuncptr, updatefuncptr, terminatefuncptr)
Needs #using the script that defines it (scripts/shared/ai/systems/behavior_tree_utility.gsc).
Parameters
| Name |
|---|
| actionname |
| startfuncptr |
| updatefuncptr |
| terminatefuncptr |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 53 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_astro.gsc, line 126
behaviortreenetworkutility::registerbehaviortreeaction("moonAstroProceduralTraversal", &astrotraversestart, &robotsoldierbehavior::robotp... - scripts/zm/_zm_ai_faller.gsc, line 45
behaviortreenetworkutility::registerbehaviortreeaction("fallerDropAction", &fallerdropaction, &fallerdropactionupdate, &fallerdropactiont... - scripts/zm/_zm_ai_margwa.gsc, line 96
behaviortreenetworkutility::registerbehaviortreeaction("zmMargwaSwipeAttackAction", &function_cd380e61, &function_edd2fa77, undefined); - scripts/zm/_zm_ai_margwa_no_idgun.gsc, line 96
behaviortreenetworkutility::registerbehaviortreeaction("zmMargwaSwipeAttackAction", &function_cd380e61, &function_edd2fa77, undefined); - scripts/zm/_zm_ai_mechz_claw.gsc, line 108
behaviortreenetworkutility::registerbehaviortreeaction("zmMechzShootClawAction", &function_86ac6346, &function_a94df749, &function_1b118e5);
More in behaviortreenetworkutility::
- behaviortreenetworkutility::registerbehaviortreescriptapi()Registers behavior tree script ap i.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).