Skip to content

Instantly share code, notes, and snippets.

@tjmonsi
Created November 10, 2020 13:26
Show Gist options
  • Select an option

  • Save tjmonsi/7766b0042e36716c9b4d185c2f704b90 to your computer and use it in GitHub Desktop.

Select an option

Save tjmonsi/7766b0042e36716c9b4d185c2f704b90 to your computer and use it in GitHub Desktop.
Create a loadout text
_text = “<CHANGE-TEXT-HERE>”;
_loadout = //paste-the-clipboard-here
_this addAction
[
format [“Load %1”, _text],
{
params ["_target", "_unit", "_actionId", "_arguments"];
_arguments params ["_loadout"];
_unit setUnitLoadout _loadout;
systemChat "loadout has been set for you"
},
[_loadout]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment