Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Base class of node which outputs action parameters to Behavior Tree variables.
If you need to expose action parameters to a BT, you must create a scripted node class which inherits from SCR_AIGetActionParameters.
The action class must use SCR_BTParam for variables which must be exposed to Behavior Trees.
For example: class SCR_AIGetFlyHelicopterParameters : SCR_AIGetActionParameters { static ref TStringArray s_aVarsOut = (new SCR_AIFlyHelicopterBehavior(null, false)).GetPortNames(); // (1) override TStringArray GetVariablesOut() { return s_aVarsOut; } // protected override bool VisibleInPalette() { return true; } // (2) };
(1) We need to create an action object once to get port names. We store the resulting array into a static variable. Please ensure that constructor does not call any other code which is inaccessible during script compilation!
(2) Remember to override VisibleInPallete!
Definition at line 22 of file SCR_AIGetActionParameters.c.