mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ad75c7c9b8
* Fix loading patients into turret only seats * Fix cargo logic, adjust function for captives (#8000) Co-authored-by: PabstMirror <pabstmirror@gmail.com>
26 lines
592 B
Plaintext
26 lines
592 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: 654wak654
|
|
* Adds child actions to the "load captive" action for near vehicles.
|
|
*
|
|
* Arguments:
|
|
* 0: Captive <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Child actions <ARRAY>
|
|
*
|
|
* Example:
|
|
* [kevin] call ace_captives_fnc_addLoadCaptiveActions
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target"];
|
|
|
|
private _statement = {
|
|
params ["_target", "_player", "_vehicle"];
|
|
[_player, _target, _vehicle] call FUNC(doLoadCaptive);
|
|
};
|
|
|
|
[[_target, nil, true] call EFUNC(common,nearestVehiclesFreeSeat), _statement, _target] call EFUNC(interact_menu,createVehiclesActions)
|