Remove unused addUnloadPatientActions

This commit is contained in:
PabstMirror 2017-09-23 11:58:49 -05:00
parent 6aa32ce811
commit 04db4add26
2 changed files with 0 additions and 44 deletions

View File

@ -37,7 +37,6 @@ PREP(treatmentTourniquetRemove);
// misc
PREP(addToLog);
PREP(addToTriageCard);
PREP(addUnloadPatientActions);
PREP(canAccessMedicalEquipment);
PREP(dropDownTriageCard);
PREP(getTriageStatus);

View File

@ -1,43 +0,0 @@
/*
* Author: esteldunedain
* Create one unload action per unconscious passenger
*
* Argument:
* 0: Vehicle <OBJECT>
* 1: Player <OBJECT>
* 2: Parameters <ARRAY>
*
* Return value:
* Children actions <ARRAY>
*
* Example:
* [car, kevin, [params]] call ACE_medical_treatment_fnc_addUnloadPatientActions
*
* Public: No
*/
#include "script_component.hpp"
params ["_vehicle", "_player", "_parameters"];
private _actions = [];
{
private _unit = _x;
if (_unit != _player && {(alive _unit) && {_unit getVariable ["ACE_isUnconscious", false]}}) then {
_actions pushBack
[
[
str(_unit),
[_unit, true] call EFUNC(common,getName),
"",
{[_player, (_this select 2) select 0] call FUNC(actionUnloadUnit);},
{true},
{},
[_unit]
] call EFUNC(interact_menu,createAction),
[],
_unit
];
};
} forEach crew _vehicle;
_actions