VN_fnc_vehicle_spareAmmoUpdate

From Savage Game Design Wiki
Revision as of 23:44, 9 May 2022 by Slow (talk | contribs) (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...")
(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.10
by veteran29, Apollo
Argument(s): n/a
Effect(s): unknown

Description

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

    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
*/

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;