mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
785 B
Plaintext
30 lines
785 B
Plaintext
/*
|
|
Name: AGM_Explosives_fnc_selectTrigger
|
|
|
|
Author: Garth de Wet (LH)
|
|
|
|
Description:
|
|
Selects a trigger for an explosive.
|
|
|
|
Parameters:
|
|
0: String - Magazine
|
|
1: String - trigger index in AGM_triggers of magazine class
|
|
|
|
Returns:
|
|
Nothing
|
|
|
|
Example:
|
|
["SatchelCharge_Remote_Mag","Timer"] call AGM_Explosives_fnc_selectTrigger;
|
|
*/
|
|
private ["_magazine","_trigger"];
|
|
closeDialog 0;
|
|
_magazine = _this select 0;
|
|
_trigger = _this select 1;
|
|
_config = ConfigFile >> "CfgAGM_Triggers" >> _trigger;
|
|
call AGM_Interaction_fnc_hideMenu;
|
|
|
|
// If the onSetup function returns true, it is handled elsewhere
|
|
if (isText(_config >> "onSetup") && {[_magazine] call compile getText (_config >> "onSetup")}) exitWith {};
|
|
|
|
[AGM_player, _magazine, _trigger] call AGM_Explosives_fnc_SetupExplosive;
|