BIS fnc effectFiredRifle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added example, gonna format whole page later)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|eff= local
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
|gr1= Effects
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_effectFiredRifle]]; --> |SYNTAX=
|descr= Used to add an effect to fired bullets. Should be executed from Fired Event Handler.


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


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


|x1= <code>this addEventHandler ["Fired",
|p2= nil: [[Nothing]]
{
_this call BIS_fnc_effectFiredRifle;
}];</code> |EXAMPLE1=
____________________________________________________________________________________________


| |SEEALSO=
|p3= nil: [[Nothing]]


}}
|p4= nil: [[Nothing]]


<h3 style="display:none">Notes</h3>
|p5= ammoType: [[String]] - the type of ammo the effect should be triggered for
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>unit addEventHandler ["Fired",
[[Category:Function Group: Effects|{{uc:effectFiredRifle}}]]
{
[[Category:Functions|{{uc:effectFiredRifle}}]]
  _this call BIS_fnc_effectFiredRifle;
[[Category:{{Name|arma3}}: Functions|{{uc:effectFiredRifle}}]]
}];</sqf>
 
|seealso= [[addEventHandler]] [[Arma_3:_Event_Handlers#Fired | Fired Event Handler]]
}}

Latest revision as of 15:50, 8 November 2023

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