setWeaponZeroing: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3dev |version1= 2.03" to " |game1= arma3 |version1= 2.04") |
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.04 | |version1= 2.04 | ||
Revision as of 15:51, 3 May 2021
Description
- Description:
- Sets zeroing of given weapon and muzzle for given unit or vehicle.
- Groups:
- Weapons
Syntax
- Syntax:
- object setWeaponZeroing [weaponClass, muzzleClass, zeroingIndex]
- Parameters:
- object: Object - Unit or vehicle
- weaponClass: String - Class name of weapon
- muzzleClass: String - Class name of the muzzle
- zeroingIndex: Number - Zeroing index, see currentZeroing
- Return Value:
- Bool - True if successful, otherwise false is returned (e.g. weapon, muzzle, or zeroing index is invalid)
Examples
- Example 1:
player setWeaponZeroing ["arifle_MX_GL_F", "GL_3GL_F", 8]; // Set zeroing for underbarrel grenade launcher to 400 m
Additional Information
- See also:
- currentZeroing
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note