Skip to content
VN_fnc_bolt_fired

VN_fnc_bolt_fired

Function called when a weapon is fired, plays an animation and plays a sound.

Syntax

[_ehArgs,_animation,_sound,_wait] call VN_fnc_bolt_fired;

Parameters

ParameterTypeDefaultDescription
_ehArgs Array[] Array containing the eventhandler data.
_animation String"" Animation to play when weapon is fired.
_sound String"" Sound to play when the weapon is fired.
_wait BooleanFALSE Should the function wait until the fired key is not held.

Return value

Boolean - Function reached the end.

Examples

[_this, "vn_animation", "vn_sound", true] call vn_fnc_bolt_fired;

Documented by Ethan Johnson.