Arma 3 Scripting

Command in Weapons

setWeaponZeroing

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets zeroing of given weapon and muzzle for given unit or vehicle.

Syntax

object setWeaponZeroing [weaponClass, muzzleClass, zeroingIndex]

Parameters:

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

See also

currentZeroing