Compare commits
2 Commits
48c45731b7
...
4c9c2bd755
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4c9c2bd755 | ||
![]() |
0cbe027b3b |
@ -27,13 +27,13 @@ if (_taskID == "") exitWith { diag_log "ERROR: No task ID provided for cargo"; }
|
|||||||
SETPVAR(_cargo,assignedTask,_taskID);
|
SETPVAR(_cargo,assignedTask,_taskID);
|
||||||
GVAR(allCargo) pushBack _cargo;
|
GVAR(allCargo) pushBack _cargo;
|
||||||
|
|
||||||
_cargo addEventHandler ["Damaged", {
|
_cargo addEventHandler ["Dammaged", {
|
||||||
params ["_unit", "_hitSelection", "_damage", "_hitPartIndex", "_hitPoint", "_shooter", "_projectile"];
|
params ["_unit", "_hitSelection", "_damage", "_hitPartIndex", "_hitPoint", "_shooter", "_projectile"];
|
||||||
|
|
||||||
if (damage _unit >= 0.7) then {
|
if (damage _unit >= 0.7) then {
|
||||||
private _taskID = GETVAR(_unit,assignedTask,"");
|
private _taskID = GETVAR(_unit,assignedTask,"");
|
||||||
if (_taskID isNotEqualTo "") then {
|
if (_taskID isNotEqualTo "") then {
|
||||||
hint format ["Warning: Cargo severely damaged! Task: %1", _taskID];
|
hint format ["Warning: Cargo severely dammaged! Task: %1", _taskID];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}];
|
}];
|
Loading…
x
Reference in New Issue
Block a user