Garry's Mod Wiki

Player:SetActiveWeapon

Player:SetActiveWeapon

  Player:SetActiveWeapon( Weapon weapon )

Description

Sets the player's active weapon. You should use CUserCmd:SelectWeapon or Player:SelectWeapon, instead in most cases.

This function will not trigger the weapon switch events or associated equip animations. It will bypass GM:PlayerSwitchWeapon and the currently active weapon's WEAPON:Holster return value.

Arguments

1 Weapon weapon
The weapon to equip.

Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 30
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6