setWeaponZeroing: Difference between revisions
Jump to navigation
Jump to search
m (minor tweak) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *U([a-z])" to "$1 - u$2") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|game1= | |game1= arma3 | ||
|version1= 2.04 | |||
|version1= 2. | |||
|gr1= Weapons | |gr1= Weapons | ||
Line 11: | Line 10: | ||
|s1= object [[setWeaponZeroing]] [weaponClass, muzzleClass, zeroingIndex] | |s1= object [[setWeaponZeroing]] [weaponClass, muzzleClass, zeroingIndex] | ||
|p1= object: [[Object]] - | |p1= object: [[Object]] - unit or vehicle | ||
|p2= weaponClass: [[String]] - | |p2= weaponClass: [[String]] - class name of weapon | ||
|p3= muzzleClass: [[String]] | |p3= muzzleClass: [[String]] - class name of the muzzle | ||
|p4= zeroingIndex: [[Number]] | |p4= zeroingIndex: [[Number]] - zeroing index. See [[currentZeroing]] | ||
|r1= [[ | |r1= [[Boolean]] - [[true]] if successful, otherwise [[false]] is returned (e.g. weapon, muzzle, or zeroing index is invalid) | ||
|x1= < | |x1= <sqf>player setWeaponZeroing ["arifle_MX_GL_F", "GL_3GL_F", 8]; // Set zeroing for underbarrel grenade launcher to 400m</sqf> | ||
|seealso= [[currentZeroing]] | |seealso= [[currentZeroing]] | ||
}} | }} |
Latest revision as of 14:45, 8 November 2023
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:
- Boolean - 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 400m
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