SDKHooks_DropWeapon

Last Updated2021-10-13
Created At2013-02-08

Forces a client to drop the specified weapon

native void SDKHooks_DropWeapon(int client, int weapon, const float vecTarget[3] = NULL_VECTOR, const float vecVelocity[3] = NULL_VECTOR, bool bypassHooks = true)

Parameters

int client
Client index.
int weapon
Weapon entity index.
const float[3] vecTarget
Location to toss weapon to, or NULL_VECTOR for default.
const float[3] vecVelocity
Velocity at which to toss weapon, or NULL_VECTOR for default.
bool bypassHooks
If true, bypass SDK hooks on Weapon Drop

Return Value

void

Error

Invalid client or weapon entity, weapon not owned by client.