VN_fnc_vehicle_spareAmmoUpdate

From Savage Game Design Wiki
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.

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;