Fix: Correct typo in cargo damage handler
This commit corrects a typo in the cargo damage handler within `fnc_makeCargo.sqf`. The event handler name was misspelled as "Dammaged" instead of "Damaged". This has been corrected to ensure the event handler functions as intended. Additionally, the hint message displayed when cargo is severely damaged also had the same typo, which has been corrected.
This commit is contained in:
parent
40eccaed69
commit
0cbe027b3b
@ -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 ["Damaged", {
|
||||
_cargo addEventHandler ["Dammaged", {
|
||||
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 damaged! Task: %1", _taskID];
|
||||
hint format ["Warning: Cargo severely dammaged! Task: %1", _taskID];
|
||||
};
|
||||
};
|
||||
}];
|
Loading…
x
Reference in New Issue
Block a user