Compare commits

..

No commits in common. "4c9c2bd755d693b37a2d73a777c9511a76a9009f" and "48c45731b79aa8b63a8e86be7414526198831509" have entirely different histories.

View File

@ -27,13 +27,13 @@ if (_taskID == "") exitWith { diag_log "ERROR: No task ID provided for cargo"; }
SETPVAR(_cargo,assignedTask,_taskID);
GVAR(allCargo) pushBack _cargo;
_cargo addEventHandler ["Dammaged", {
_cargo addEventHandler ["Damaged", {
params ["_unit", "_hitSelection", "_damage", "_hitPartIndex", "_hitPoint", "_shooter", "_projectile"];
if (damage _unit >= 0.7) then {
private _taskID = GETVAR(_unit,assignedTask,"");
if (_taskID isNotEqualTo "") then {
hint format ["Warning: Cargo severely dammaged! Task: %1", _taskID];
hint format ["Warning: Cargo severely damaged! Task: %1", _taskID];
};
};
}];