Skip to content

Loadout Button

Broström.A | Evul edited this page Aug 3, 2023 · 4 revisions

This is a little function that allow you to give a unit a loadout from a scroll wheel action. The function is useful for temporarily loadouts.

/* Arguments:
 * 0: Object <OBJECT>
 * 1: Lable <STRING>
 * 2: Loadout <CLASSNAME / VARIABLE / LOADOUT ARRAY>
 */

[this, "My Custom Loadout", "My_Loadout_Classname"] call cScripts_fnc_addLoadoutAction;
[this, "Rifleman", "B_Soldier_F"] call cScripts_fnc_addLoadoutAction;
[this, "Apply a special variable loadout", "Variable_Name"] call cScripts_fnc_addLoadoutAction;
[this, "Go Nude", [[],[],[],[],[],[],"","",[],["","","","","",""]]] call cScripts_fnc_addLoadoutAction;

The function is applied manually via Eden on the objects init.

See also,

cScripts Development Wiki

Clone this wiki locally