-
Notifications
You must be signed in to change notification settings - Fork 41
variables
Use unit and group variables to deactivate certain mod aspects and read information from the mod.
Group leaders are equipped with an extra layer of AI. The group or tactical assessment component covers such things as calling for artillery, coordinated building assaults, hiding from tanks or airplanes, remanning static weapons, scanning with binoculars, and additional levels of extra-group communication.
<group> setVariable ["lambs_danger_disableGroupAI", true];
The enhanced behaviours of the mod are easily toggled. The unit FSM may be dynamically deactivated during play. The individual AI handles such things as entering buildings, the reaction state to combat, panicking and various other core LAMBS Danger FSM features.
<unit> setVariable ["lambs_danger_disableAI", true];
With the group AI active it is possible to configure formation changes on first contact. The formation change is run on the 'Contact' event. Possible uses could be to change the unit from a patrolling formation to a CQC mode, or some other preferred variation.
<group> setVariable ["lambs_danger_dangerFormation", "FILE"];
NB: These variables will only come into play at version 2.5 or later. Check these variables to determine if a unit is currently executing a group tactic or how long the contact state will last:
<group> getVariable "lambs_danger_isExecutingTactic"
<group> getVariable "lambs_danger_contact"
NB: These variables will only come into play at version 2.5 or later.
Checking this variable will give the current FSM data that the AI is responding to.
<unit> getVariable "lambs_main_FSMDangerCauseData"
0: Cause of danger
<NUMBER>
1: Position of Danger<ARRAY>
2: Danger lasting until<NUMBER>
3: Dangerous object<OBJECT>
(OBS: is sometimesobjNull
)
The following three variables will report various information about the unit and group tasks:
<unit> getVariable "lambs_main_currentTarget"
<unit> getVariable "lambs_main_currentTask"
<group> getVariable "lambs_main_currentTactic"