2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2022-05-10 01:28:10 +00:00
|
|
|
/*
|
2022-08-31 04:17:31 +00:00
|
|
|
* Author: Brett Mayson, Timi007
|
2022-05-10 01:28:10 +00:00
|
|
|
* Adds the child actions for placing flags.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Player <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Actions <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player] call ace_marker_flags_fnc_addActions
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
private _actions = [];
|
|
|
|
|
|
|
|
{
|
2022-08-31 04:17:31 +00:00
|
|
|
(GVAR(flagCache) get _x) params ["_vehicle", "_displayName", "_icon"];
|
|
|
|
|
2022-05-10 01:28:10 +00:00
|
|
|
_actions pushBack [
|
|
|
|
[
|
|
|
|
_x,
|
2022-08-31 04:17:31 +00:00
|
|
|
_displayName,
|
|
|
|
_icon,
|
2022-05-10 01:28:10 +00:00
|
|
|
{[_this select 0, _this select 2] call FUNC(placeFlag)},
|
|
|
|
{true},
|
|
|
|
{},
|
|
|
|
_x
|
|
|
|
] call EFUNC(interact_menu,createAction),
|
|
|
|
[],
|
|
|
|
_unit
|
|
|
|
];
|
|
|
|
} forEach ([_unit] call FUNC(getFlags));
|
|
|
|
|
|
|
|
_actions
|