{"name":"BIS_fnc_effectFiredRifle","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"the unit, the effect should be added to","types":["Object"],"since":null,"text":"unit: Object - the unit, the effect should be added to"},{"name":"nil","type":"Nothing","optional":false,"default":null,"description":null,"types":["Nothing"],"since":null,"text":"nil: Nothing"},{"name":"nil","type":"Nothing","optional":false,"default":null,"description":null,"types":["Nothing"],"since":null,"text":"nil: Nothing"},{"name":"nil","type":"Nothing","optional":false,"default":null,"description":null,"types":["Nothing"],"since":null,"text":"nil: Nothing"},{"name":"ammoType","type":"String","optional":false,"default":null,"description":"the type of ammo the effect should be triggered for","types":["String"],"since":null,"text":"ammoType: String - the type of ammo the effect should be triggered for"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"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}];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addEventHandler","Arma 3: Event Handlers"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Effects","Functions","Functions: Local Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}