mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
623 B
Plaintext
15 lines
623 B
Plaintext
|
//#define DEBUG_MODE_FULL
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
private ["_shell","_prepArray","_shellClass","_defaultClass"];
|
||
|
PARAMS_1(_gun);
|
||
|
|
||
|
_prepArray = _gun getVariable ["ace_sys_arty_currentRound", []];
|
||
|
if (count _prepArray > 0) then {
|
||
|
_defaultClass = getText(configFile >> "CfgMagazines" >> (_prepArray select 0) >> "ACE_ARTY_DEFAULT_CLASS");
|
||
|
_shellClass = getText(configFile >> "CfgMagazines" >> _defaultClass >> "ACE_ARTY_SHELL_VEHICLE");
|
||
|
_gun setVariable ["ace_sys_arty_currentRound",[],true];
|
||
|
_shell = _shellClass createVehicle getPos _gun;
|
||
|
_shell setVariable ["ACE_ARTY_PREP",_prepArray,true];
|
||
|
};
|