{"name":"BIS_fnc_effectFiredRifle","title":"BIS fnc effectFiredRifle","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_effectFiredRifle","revid":349187,"updated":"2023-11-08T14:50:39Z","groups":["Effects"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"effect":"local"},"description":"Used to add an effect to fired bullets. Should be executed from Fired Event Handler.","syntaxes":[{"syntax":"[unit, nil, nil, nil, ammoType] call BIS_fnc_effectFiredRifle","params":[{"name":"unit","type":"Object","description":"the unit, the effect should be added to","type_expr":"Object"},{"name":"nil","type":"Nothing","type_expr":"Nothing"},{"name":"nil","type":"Nothing","type_expr":"Nothing"},{"name":"nil","type":"Nothing","type_expr":"Nothing"},{"name":"ammoType","type":"String","description":"the type of ammo the effect should be triggered for","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"text":"```sqf\nunit addEventHandler [\"Fired\",\n{\n   _this call BIS_fnc_effectFiredRifle;\n}];\n```","code":["unit addEventHandler [\"Fired\", \n{\n   _this call BIS_fnc_effectFiredRifle;\n}];"]}],"see_also":["addEventHandler","Arma 3: Event Handlers"]}