mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add addDefaultLoadout function
This commit is contained in:
parent
16a3bd096a
commit
c3502d6dcc
@ -1,3 +1,4 @@
|
||||
PREP(addDefaultLoadout);
|
||||
PREP(addListBoxItem);
|
||||
PREP(addStat);
|
||||
PREP(addVirtualItems);
|
||||
|
21
addons/arsenal/functions/fnc_addDeafultLoadout.sqf
Normal file
21
addons/arsenal/functions/fnc_addDeafultLoadout.sqf
Normal file
@ -0,0 +1,21 @@
|
||||
#include "script_component.hpp"
|
||||
/*
|
||||
* Author: 654wak654
|
||||
* Adds a loadout to the "Default Loadouts" list.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Name of loadout <STRING>
|
||||
* 1: getUnitLoadout array <ARRAY>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* ["Squad Leader", getUnitLoadout sql1] call ace_arsenal_fnc_addDefaultLoadout
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
params [["_name", "", [""]], ["_loadout", [], [[]], 10];
|
||||
|
||||
GVAR(defaultLoadoutsList) append [_name, _loadout];
|
Loading…
Reference in New Issue
Block a user