VN_fnc_bolt_fired
Jump to navigation
Jump to search
← 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;