Difference between revisions of "VN fnc vehicle spareAmmoUpdate"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "{{Function |v= 1.10 |author=veteran29, Apollo |a= |e= |g1= vn_vehicles_functions |d= <pre>Hide spare ammunition stored on a vehicle as rounds are fired. Parameter(s...")
 
 
Line 10: Line 10:
 
|g1= vn_vehicles_functions
 
|g1= vn_vehicles_functions
  
|d= <pre>Hide spare ammunition stored on a vehicle as rounds are fired.
+
|d= <pre>Hide spare ammunition stored on a vehicle as rounds are fired.</pre>
 
 
    Parameter(s):
 
        _vehicle - Vehicle to update
 
_magMaxCount - full ammunition count in the magazine
 
_magHideAnimSource - animationSource used for hiding the spare ammunition
 
_magClass - magazine class
 
 
 
    Returns:
 
        Function reached the end [BOOL]
 
 
 
    Example(s):
 
        [truck, 12, "mag_he_hide", "vn_type56_v_12_he_mag"] call fn_veh_spareAmmoUpdate
 
*/
 
 
 
</pre>
 
  
 
|s= [_vehicle,_magMaxCount,_magHideAnimSource,_magClass] call [[VN_fnc_vehicle_spareAmmoUpdate]];
 
|s= [_vehicle,_magMaxCount,_magHideAnimSource,_magClass] call [[VN_fnc_vehicle_spareAmmoUpdate]];

Latest revision as of 23:44, 9 May 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.10
by veteran29, Apollo
Argument(s): n/a
Effect(s): unknown

Description

Hide spare ammunition stored on a vehicle as rounds are fired.

Syntax

Syntax
[_vehicle,_magMaxCount,_magHideAnimSource,_magClass] call VN_fnc_vehicle_spareAmmoUpdate;
Parameters
_vehicle: Object - (Optional, default objNull) Vehicle to update
_magMaxCount: Number - (Optional, default 0) Full ammunition count in the magazine
_magHideAnimSource: String - (Optional, default "") animationSource used for hiding the spare ammunition
_magClass: String - (Optional, default "") Magazine class
Return value
Boolean - Function reached the end

Examples

Example 1
[truck, 12, "mag_he_hide", "vn_type56_v_12_he_mag"] call fn_veh_spareAmmoUpdate;