Garry's Mod Wiki

input.SelectWeapon

  input.SelectWeapon( Weapon weapon )

Description

Switches to the provided weapon on the next CUserCmd generation/CreateMove call. Direct binding to CInput::MakeWeaponSelection.

Arguments

1 Weapon weapon
The weapon entity to switch to.