Difference between revisions of "VN fnc sa2 fired"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "{{Function |v= 1.00 |author= Ethan Johnson |a= |e= |g1= weapon_functions |d= SA2 fired eventhandler function, does not use all parameters from the fired eventhandler |s=...")
 
 
Line 57: Line 57:
 
|r1d= function reached the end
 
|r1d= function reached the end
  
|x1= [player, "weapon", "muzzle", "mode", "ammo", "magazine", "projectile", gunner] call vn_fnc_sa2_fired
+
|x1= <code>[player, "weapon", "muzzle", "mode", "ammo", "magazine", "projectile", gunner] call vn_fnc_sa2_fired</code>
 
}}
 
}}

Latest revision as of 19:57, 26 April 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

SA2 fired eventhandler function, does not use all parameters from the fired eventhandler

Syntax

Syntax
[player, "weapon", "muzzle", "mode", "ammo", "magazine", "projectile", gunner] call vn_fnc_sa2_fired
Parameters
_unit: Object - (Optional, default OBJNULL) Unit which the eventhandler is attached to.
_weapon: String - (Optional, default "") Weapon classname of the fired weapon.
_muzzle: String - (Optional, default "") Muzzle of the fired weapon.
_mode: String - (Optional, default "") Mode of the fired weapon.
_ammo: String - (Optional, default "") Ammo of the fired weapon.
_magazine: String - (Optional, default "") Magazine of the fired weapon.
_projectile: String - (Optional, default "") Projectile of the fired weapon.
_gunner: Object - (Optional, default OBJNULL) Unit that insigated the fired eventhandler.
Return value
Boolean - function reached the end

Examples

Example 1
[player, "weapon", "muzzle", "mode", "ammo", "magazine", "projectile", gunner] call vn_fnc_sa2_fired