VN_fnc_vehicle_spareAmmoUpdate

From Savage Game Design Wiki
Revision as of 23:44, 9 May 2022 by Slow (talk | contribs)
(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.

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;