2015-03-20 03:53:58 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-03-20 03:53:58 +00:00
|
|
|
* Mount unit actions inside passenger submenu
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: Vehicle <OBJECT>
|
|
|
|
* 1: Player <OBJECT>
|
|
|
|
* 3: Parameters <ARRAY>
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Children actions <ARRAY>
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_3_PVT(_this,_vehicle,_player,_parameters);
|
|
|
|
|
|
|
|
diag_log "addPassengerActions";
|
|
|
|
|
|
|
|
private ["_unit","_actions"];
|
|
|
|
_unit = _parameters select 0;
|
|
|
|
|
|
|
|
_varName = format [QEGVAR(interact_menu,Act_%1), typeOf _unit];
|
|
|
|
_actionTrees = missionNamespace getVariable [_varName, []];
|
|
|
|
|
|
|
|
_actions = [];
|
|
|
|
// Mount unit MainActions menu
|
2015-03-21 01:44:25 +00:00
|
|
|
_actions pushBack [(_actionTrees select 0) select 0, (_actionTrees select 0) select 1, _unit];
|
2015-03-20 03:53:58 +00:00
|
|
|
|
|
|
|
_actions
|