---
name: "BIS_fnc_effectFiredRifle"
type: function
status: ok
groups: ["Effects"]
arma3_since: "1.00"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_effectFiredRifle
revid: 349187
updated: 2023-11-08T14:50:39Z
---

# BIS_fnc_effectFiredRifle

*Function · Effects · Arma 3 v1.00*

Locality: effect **local**

## Description

Used to add an effect to fired bullets. Should be executed from Fired Event Handler.

## Syntax

```sqf
[unit, nil, nil, nil, ammoType] call BIS_fnc_effectFiredRifle
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - the unit, the effect should be added to
- `nil`: [Nothing](../topics/Nothing.md)
- `nil`: [Nothing](../topics/Nothing.md)
- `nil`: [Nothing](../topics/Nothing.md)
- `ammoType`: [String](../topics/String.md) - the type of ammo the effect should be triggered for

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
unit addEventHandler ["Fired", 
{
   _this call BIS_fnc_effectFiredRifle;
}];
```

## See also

[addEventHandler](../commands/addEventHandler.md) · [Arma 3: Event Handlers](../topics/Event_Handlers.md)

<sub>Source: [BI Community Wiki — BIS fnc effectFiredRifle](https://community.bistudio.com/wiki/BIS_fnc_effectFiredRifle) (revision 349187).</sub>
