2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2017-09-29 20:00:47 +00:00
|
|
|
/*
|
|
|
|
* Author: 654wak654
|
|
|
|
* Adds child actions to the "load patient" action for near vehicles.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Patient <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Child actions <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
2017-10-03 03:37:22 +00:00
|
|
|
* [kevin] call ace_medical_treatment_fnc_addLoadPatientActions
|
2017-09-29 20:00:47 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_target"];
|
|
|
|
|
|
|
|
private _statement = {
|
|
|
|
params ["_target", "_player", "_vehicle"];
|
|
|
|
[_player, _target, _vehicle] call FUNC(actionLoadUnit);
|
|
|
|
};
|
|
|
|
|
|
|
|
[_target call EFUNC(common,nearestVehiclesFreeSeat), _statement, _target] call EFUNC(interact_menu,createVehiclesActions)
|