Player/DropNamedWeapon

From Garry's Mod
Jump to: navigation, search
 Player:DropNamedWeapon( )

Contents

Description

Drops the players' weapon of a specific class.

Arguments

string class

The class to drop.

Arguments

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.

Arguments

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.
Personal tools
Navigation