2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-09-29 20:00:47 +00:00
|
|
|
/*
|
|
|
|
* Author: 654wak654
|
|
|
|
* Adds child actions to the "load captive" action for near vehicles.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Captive <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Child actions <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
2019-10-06 16:10:56 +00:00
|
|
|
* [kevin] call ace_captives_fnc_addLoadCaptiveActions
|
2017-09-29 20:00:47 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_target"];
|
|
|
|
|
|
|
|
private _statement = {
|
|
|
|
params ["_target", "_player", "_vehicle"];
|
|
|
|
[_player, _target, _vehicle] call FUNC(doLoadCaptive);
|
|
|
|
};
|
|
|
|
|
2020-11-15 18:57:27 +00:00
|
|
|
[[_target, nil, true] call EFUNC(common,nearestVehiclesFreeSeat), _statement, _target] call EFUNC(interact_menu,createVehiclesActions)
|