mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixes
This commit is contained in:
parent
cce9e1f04c
commit
a5c3e86cd3
@ -14,8 +14,6 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
systemChat "actionDiagnose";
|
||||
|
||||
private ["_caller","_target","_title","_content"];
|
||||
_caller = _this select 0;
|
||||
_target = _this select 1;
|
||||
|
@ -14,12 +14,10 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
systemChat "actionDiagnoseLocal";
|
||||
|
||||
_caller = _this select 0;
|
||||
_unit = _this select 1;
|
||||
|
||||
_genericMessages = ["Patient %1 is %2. %3. %4"];
|
||||
_genericMessages = ["Patient %1<br/>is %2.<br/>%3.<br/>%4"];
|
||||
|
||||
_genericMessages pushBack ([_unit] call EFUNC(common,getName));
|
||||
if (alive _unit) then {
|
||||
@ -31,12 +29,12 @@ if (_target getvariable[QGVAR(hasLostBlood), false]) then {
|
||||
_genericMessages pushback "He's lost some blood";
|
||||
} else {
|
||||
_genericMessages pushback "He hasn't lost blood";
|
||||
;
|
||||
|
||||
if (_target getvariable[QGVAR(hasPain), false]) then {
|
||||
_genericMessages pushback localize "He is in pain";
|
||||
} else {
|
||||
_genericMessages pushback localize "He is not in pain";
|
||||
};
|
||||
|
||||
["displayTextStructured", [_caller], [format _genericMessages, 1.5, _caller]] call EFUNC(common,targetEvent);
|
||||
if (_target getvariable[QGVAR(hasPain), false]) then {
|
||||
_genericMessages pushback "He is in pain";
|
||||
} else {
|
||||
_genericMessages pushback "He is not in pain";
|
||||
};
|
||||
diag_log _genericMessages;
|
||||
["displayTextStructured", [_caller], [format _genericMessages, 3.0, _caller]] call EFUNC(common,targetEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user