VN_fnc_bolt_fired

From Savage Game Design Wiki
Revision as of 01:07, 5 May 2022 by Slow (talk | contribs) (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> |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

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;