Difference between revisions of "VN fnc vehicle spareAmmoUpdate"
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...") |
(No difference)
|
Revision as of 23:44, 9 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.10 by veteran29, Apollo |
|
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;