BIS fnc effectFiredRifle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
Line 10: Line 10:
|descr= Used to add an effect to fired bullets. Should be executed from Fired Event Handler.
|descr= Used to add an effect to fired bullets. Should be executed from Fired Event Handler.


|s1= [unit, nil, nil, nil, ammoType] [[call]] [[BIS_fnc_effectFiredRifle]]
|s1= [unit, nil, nil, nil, ammoType] call [[BIS_fnc_effectFiredRifle]]


|p1= unit: [[Object]] - The unit, the effect should be added to
|p1= unit: [[Object]] - The unit, the effect should be added to

Revision as of 19:18, 20 June 2021

Hover & click on the images for description

Description

Description:
Used to add an effect to fired bullets. Should be executed from Fired Event Handler.
Execution:
call
Groups:
Effects

Syntax

Syntax:
[unit, nil, nil, nil, ammoType] call BIS_fnc_effectFiredRifle
Parameters:
unit: Object - The unit, the effect should be added to
nil: Nothing
nil: Nothing
nil: Nothing
ammoType: String - The type of ammo the effect should be triggered for
Return Value:
Nothing

Examples

Example 1:
unit addEventHandler ["Fired", { _this call BIS_fnc_effectFiredRifle; }];

Additional Information

See also:
addEventHandler Fired Event Handler

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note