BIS fnc effectFiredRifle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {2,}\}\}" to " }}") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.00 | |version1= 1.00 | ||
|eff= local | |eff= local | ||
|gr1 = Effects | |gr1= Effects | ||
|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] | |s1= [unit, nil, nil, nil, ammoType] call [[BIS_fnc_effectFiredRifle]] | ||
|p1= unit: [[Object]] - | |p1= unit: [[Object]] - the unit, the effect should be added to | ||
|p2= nil: [[Nothing]] | |p2= nil: [[Nothing]] | ||
Line 21: | Line 20: | ||
|p4= nil: [[Nothing]] | |p4= nil: [[Nothing]] | ||
|p5= ammoType: [[String]] - | |p5= ammoType: [[String]] - the type of ammo the effect should be triggered for | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>unit addEventHandler ["Fired", | ||
{ | { | ||
_this call BIS_fnc_effectFiredRifle; | |||
}];</ | }];</sqf> | ||
|seealso= [[addEventHandler]] [[Arma_3:_Event_Handlers#Fired | Fired Event Handler]] | |seealso= [[addEventHandler]] [[Arma_3:_Event_Handlers#Fired | Fired Event Handler]] | ||
}} | }} | ||
Latest revision as of 15:50, 8 November 2023
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:
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