setWeaponZeroing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.03 |gr1= Weapons |descr= Sets zeroing of given weapon and muzzle for given unit or vehicle. |s1= object setWeaponZeroing...")
 
m (changed version to dev)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|game1= arma3
|game1= arma3dev


|version1= 2.03
|version1= 2.03

Revision as of 11:16, 13 February 2021

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.03|2.03]]
Hover & click on the images for description

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:
Nothing

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

[[Category:Introduced with arma3dev version 2.03]][[ Category: arma3dev: New Scripting Commands | SETWEAPONZEROING]][[ Category: arma3dev: Scripting Commands | SETWEAPONZEROING]]