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 (page filled)
Line 1: Line 1:
{{Function|Comments=
{{Function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3


|1.00|Game version=
|version1= 1.00
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
<!--|exec= server|=-->
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_effectFiredRifle]]; --> |SYNTAX=
<!--|arg= local-->


|p1= |PARAMETER1=
|eff= local


| |RETURNVALUE=
|descr= Used to add an effect to fired bullets. Should be executed from Fired Event Handler.
____________________________________________________________________________________________


|x1= <code>this addEventHandler ["Fired",  
|s1= [unit, nil, nil, nil, ammoType] [[call]] [[BIS_fnc_effectFiredRifle]]
 
|p1= unit: [[Object]] - The unit, the effect should be added to
 
|p2= nil: [[Nothing]]
 
|p3= nil: [[Nothing]]
 
|p4= nil: [[Nothing]]
 
|p5= ammoType: [[String]] - The type of ammo the effect should be triggered for
 
|r1= [[Nothing]]
 
|x1= <code>[[this]] [[addEventHandler]] ["Fired",  
{
{
_this call BIS_fnc_effectFiredRifle;
  [[_this]] [[call]] [[BIS_fnc_effectFiredRifle]];
}];</code> |EXAMPLE1=
}];</code>
____________________________________________________________________________________________
 
|exec= call


| |SEEALSO=
|seealso= [[addEventHandler]] [[Arma_3:_Event_Handlers#Fired | Fired Event Handler]]


}}
}}

Revision as of 10:43, 11 January 2020

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:
Uncategorised

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:
this 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

Notes

Bottom Section