.btset file into VBS3, to make the Behavior Trees (BTs) referenced by it accessible to setBT.
.btset file contains references to all BT files that might be used in the mission.
If you specify a BT set that is not already loaded, only that BT set is loaded (the command returns an error, if the BT set dependencies are not satisfied). However, if you specify a BT set that is already loaded, the command reloads all the BT sets.
- filename: String - If no path (or a relative path, for example:
scripts\doit.btset) is given, then the file is read from the installation folder (or from an addon). Absolute paths (for example,
c:\bi\scripts\doit.btset) can be used as well.
|Return Value:||Number - Can be one of the following: |
Loads file move.btset from the vbs_ctrl subfolder beneath the installation directory:
(VBS3 only) To reference BTs in the mission folder, use the following syntax:
_missionPath = format ["%1MPmissions\%2.%3\", getDirectory 0, missionName, worldName];
loadBTSet (_missionPath + "hello tree set btset");
(VBS3 and VBS4)
To specify an absolute path, use the following syntax:
loadBTSet "C:\vbs_ctrl\hello tree set btset";
|See also:|| setBT, getBT, getLoadedBTSets |