Difference between revisions of "VN fnc bolt fired"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Ethan Johnson |a= |e= |g1= vn_weapons_functions |d= <pre>Function called when a weapon is fired, plays an animation and plays a sound.</pre> |...") |
(No difference)
|
Latest revision as of 01:07, 5 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Function called when a weapon is fired, plays an animation and plays a sound.
Syntax
- Syntax
- [_ehArgs,_animation,_sound,_wait] call VN_fnc_bolt_fired;
- Parameters
- _ehArgs: Array - (Optional, default
[]
) Array containing the eventhandler data. - _animation: String - (Optional, default
""
) Animation to play when weapon is fired. - _sound: String - (Optional, default
""
) Sound to play when the weapon is fired. - _wait: Boolean - (Optional, default
FALSE
) Should the function wait until the fired key is not held. - Return value
- Boolean - Function reached the end.
Examples
- Example 1
- [_this, "vn_animation", "vn_sound", true] call vn_fnc_bolt_fired;