mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
give tourniquet to patient or medic depending on setting (#9206)
This commit is contained in:
parent
34c5988333
commit
1e6073c467
@ -38,9 +38,9 @@ private _nearPlayers = (_patient nearEntities ["CAManBase", 6]) select {_x call
|
||||
TRACE_1("clearConditionCaches: tourniquetRemove",_nearPlayers);
|
||||
[QEGVAR(interact_menu,clearConditionCaches), [], _nearPlayers] call CBA_fnc_targetEvent;
|
||||
|
||||
// Add tourniquet item to medic's inventory
|
||||
// todo: should there be a setting to select who receives the removed tourniquet?
|
||||
[_medic, "ACE_tourniquet"] call EFUNC(common,addToInventory);
|
||||
// Add tourniquet item to medic or patient
|
||||
private _receiver = [_patient, _medic, _medic] select GVAR(allowSharedEquipment);
|
||||
[_receiver, "ACE_tourniquet"] call EFUNC(common,addToInventory);
|
||||
|
||||
// Handle occluded medications that were blocked due to tourniquet
|
||||
private _occludedMedications = _patient getVariable [QEGVAR(medical,occludedMedications), []];
|
||||
|
Loading…
Reference in New Issue
Block a user