Garry's Mod Wiki

Player:DropNamedWeapon

Player:DropNamedWeapon

  Player:DropNamedWeapon( string class, Vector target = nil, Vector velocity = nil )

Description

Drops the players' weapon of a specific class.

Arguments

1 string class
The class to drop.
2 Vector target = nil
If set, launches the weapon at given position. There is a limit to how far it is willing to throw the weapon. Overrides velocity argument.
3 Vector velocity = nil
If set and previous argument is unset, launches the weapon with given velocity. If the velocity is higher than 400, it will be clamped to 400.

Special Pages


Wikis

?

Render Time: 47ms

DB GetPage 27
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 7