mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2841 from acemod/medicalAiBandage
Move bandage log before basic exit
This commit is contained in:
commit
801120fb39
@ -19,6 +19,9 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
params ["_caller", "_target", "_selectionName", "_className", "_items", "", ["_specificSpot", -1]];
|
params ["_caller", "_target", "_selectionName", "_className", "_items", "", ["_specificSpot", -1]];
|
||||||
|
|
||||||
|
[_target, "activity", LSTRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||||
|
[_target, "activity_view", LSTRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog); // TODO expand message
|
||||||
|
|
||||||
if !([_target] call FUNC(hasMedicalEnabled)) exitwith {
|
if !([_target] call FUNC(hasMedicalEnabled)) exitwith {
|
||||||
_this call FUNC(treatmentBasic_bandage);
|
_this call FUNC(treatmentBasic_bandage);
|
||||||
};
|
};
|
||||||
@ -30,7 +33,4 @@ if !([_target] call FUNC(hasMedicalEnabled)) exitwith {
|
|||||||
};
|
};
|
||||||
}foreach _items;*/
|
}foreach _items;*/
|
||||||
|
|
||||||
[_target, "activity", LSTRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
|
||||||
[_target, "activity_view", LSTRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog); // TODO expand message
|
|
||||||
|
|
||||||
true;
|
true;
|
||||||
|
Loading…
Reference in New Issue
Block a user