Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 67ms

DB GetPage 42
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 8