Skip to content

Commit

Permalink
Merge pull request #3678 from Jsmuk/weapon-jam-event
Browse files Browse the repository at this point in the history
Raise a local event when a weapon is jammed
  • Loading branch information
nicolasbadano committed Apr 11, 2016
2 parents 8072c9d + 153cd28 commit d57d6af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/overheating/functions/fnc_jamWeapon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d57d6af

Please sign in to comment.