ACE3/addons/medical_treatment/functions/fnc_addLoadPatientActions.sqf
2018-07-30 10:22:14 +01:00

26 lines
589 B
Plaintext

#include "script_component.hpp"
/*
* Author: 654wak654
* Adds child actions to the "load patient" action for near vehicles.
*
* Arguments:
* 0: Patient <OBJECT>
*
* Return Value:
* Child actions <ARRAY>
*
* Example:
* [kevin] call ace_medical_treatment_fnc_addLoadPatientActions
*
* 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)