added nil check for function ace_frag_fnc_fired

This commit is contained in:
Glowbal 2015-04-20 23:41:22 +02:00
parent fb93e9e9bc
commit 4543bab7fb

View File

@ -123,7 +123,9 @@ if (_activated) then {
if (_attach) then {_projectile attachto [_logic,[0,0,_altitude]];};
// This is our addition to this function
[_logic, "", "", "", _ammo, "", _projectile] call ace_frag_fnc_fired;
if (!isnil "ace_frag_fnc_fired") then {
[_logic, "", "", "", _ammo, "", _projectile] call ace_frag_fnc_fired;
};
//--- Play sound
if (_sound != "") then {[[_logic,_sound,"say3D"],"bis_fnc_sayMessage"] call bis_fnc_mp;};