Merge pull request #3678 from Jsmuk/weapon-jam-event

Raise a local event when a weapon is jammed
This commit is contained in:
Nicolás Badano 2016-04-11 19:25:32 -03:00
commit d57d6af898

View File

@ -43,6 +43,9 @@ if (_ammo > 0) then {
// only display the hint once, after you try to shoot an already jammed weapon
GVAR(knowAboutJam) = false;
["weaponJammed", [_unit,_weapon]] call EFUNC(common,localEvent);
if (_unit getVariable [QGVAR(JammingActionID), -1] == -1) then {
private _condition = {