Skip to content

variables

nk3nny edited this page Mar 17, 2021 · 8 revisions

LAMBS Danger FSM - Unit and Group Variables

Use unit and group variables to deactivate certain mod aspects and read information from the mod.

Group variables

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];

Unit variables

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];

Formation variable

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"];


Tactics and contacts

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"


Debug variables

NB: These variables will only come into play at version 2.5 or later.

FSM Danger cause data

Checking this variable will give the current FSM data that the AI is responding to.

<unit> getVariable "lambs_main_FSMDangerCauseData"

returns <ARRAY>:

0: Cause of danger <NUMBER>
1: Position of Danger <ARRAY>
2: Danger lasting until <NUMBER>
3: Dangerous object <OBJECT> (OBS: is sometimes objNull)

Feedback

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"

Clone this wiki locally