ACM Wiki

Mission Functions

Evacuation Addon Setup

The Evacuation addon allows player casualties to be converted into AI ones, the players are then able to reinforce at a pre-defined location and the casualty evacuated at a later point.

This reinforce point needs to be defined to set where the players will be teleported to after conversion, this should be at a pre-established friendly position, preferably close to a transport method the players will use to get back.

The evacuation object needs to be defined to allow the casualty to be evacuated and to return the used casualty ticket, this should be at a pre-established friendly position, potentially inside a medical building.

Additionally if use of respawn tickets is desired (recommended), respawn ticket subtraction needs to be enabled in the mission attributes.

Defining evacuation object and reinforcement area

Evacuation Object

  • Create a new object and enter this code into its init field:
    [this] call ACM_evacuation_fnc_defineEvacuationPoint
    • Where this is the interaction object
  • This object will have the required ACE actions to fully evacuate a casualty.
  • This object should be made indestructible to avoid issues.

Reinforce Point

  • Create a new object and enter this code into its init field:
    [this] call ACM_evacuation_fnc_defineReinforcePoint
    • Where this is the reference object
  • This object will be used as a reference for where reinforcing players should teleport to, only one of these will be active at a time (last one initialized).
  • This object should be made indestructible to avoid issues, it can also be hidden if required.

Enabling respawn ticket subtraction in mission file

Enable ticket subtraction upon unit death, this will make player and converted casualty deaths in the player faction consume respawn tickets.

Casualty Spawner

The casualty spawner allows easily adding a way to spawn casualties with varying severity for training purposes.

The reference object needs to be created to set where the casualties will be spawned.

The training computer object needs to be created to allow the player to spawn casualties at the set severity.

Reference Object

  • Create a new object and set its variable name to something unique (eg. ACM_mission_TrainingSpot1).
    • This variable will be used in the training computer object to reference this one.
  • This object will be used as a reference where the casualties should spawn, it can be hidden if required.

Training Computer

  • Create a new object and enter this code into its init field:
    [this, variable] call ACM_mission_fnc_initTrainingComputer
    • Where this is the interaction object, and variable is the variable name of the reference object (eg. ACM_mission_TrainingSpot1).
  • This object will have all the ACE interactions for spawning, healing and clearing casualties.

Full-Heal Tent

The full-heal tent allows easily adding an object that can fully heal select or all units inside it.

The (tent) object itself needs to be created to define the area inside which units can be healed.

Tent Object

  • Create a new object and enter this code into its its init field:
    [this] call ACM_mission_fnc_initHealTent
    • Where this is the tent object.
  • This object will have the ace interactions for fully healing units.
  • The ACE interactions allow healing specific units or everyone inside the tent at the same time.



In a larger objects like the tent the ACE interaction will be floating inside in the center of the object.

Custom Blood Type List

The custom blood type list allows overwriting SteamID-based blood types, and setting specific blood types for each player, for example based on the player’s real blood type.

A function needs to be entered into the mission init field which will define the set blood types of select SteamIDs.

Enabling custom blood type list in circulation settings

Defining Blood Types

  • Enter this code into the init field in the mission attributes:
    • [[["<STEAMID>",<ID>]]] call ACM_mission_fnc_createCustomBloodTypeList;
  • This will bind the desired blood type to the set SteamID(s).
Blood Type ID
O+ 0
O- 1
A+ 2
A- 3
B+ 4
B- 5
AB+ 6
AB- 7

Example:

[[["76561197960287930",1],["76561195961284930",4]]] call ACM_mission_fnc_createCustomBloodTypeList;

  • 76561197960287930 will have blood type O-, and 76561195961284930 will have blood type B+.