Skip to content

Event handlers

Joko edited this page Feb 25, 2020 · 18 revisions

LAMBS Danger FSM - event handlers

Event handlers is a framework where code is triggered when some event occurs. The vanilla game comes with a large number and LAMBS Danger FSM extends this further.

CBA Event handlers

The new event handlers are added via the CBA mod interface. Follow the link for further documentation. Below is a list of unique LAMBS Danger FSM handlers:

LAMBS specific event handlers

  • OnCheckBody
  • OnArtilleryCalled
  • OnAssess
  • OnContact
  • OnPanic
  • OnInformationShared

Example of use

Pre-2.0 variables

If you came to the mod before CBA implementation, you may be familiar with the group variable "lambs_code". This is now defunct and deprecated having been replaced by the event handlers demonstrated above.



Clone this wiki locally