Arma 3 Scripting

Command in Weapons, Unit Inventory

currentWeapon

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

Description

Return the name of the currently selected weapon (on the primary turret for vehicles).

Syntax

currentWeapon vehicle

Parameters:

Returns: String

Examples

Example 1

_weaponClass = currentWeapon (vehicle player);//Example: "M16A2GL"

Example 2

_weaponClass = currentWeapon player;

See also

currentMagazine · currentMuzzle · currentThrowable · currentVisionMode · currentWeaponMode · currentZeroing · magazinesTurret · weaponsTurret · currentWeaponTurret · weaponState