[Help] Code to make player drop current weapon

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
paintlax21
CJ Donator
CJ Donator
Posts: 52
Joined: August 10th, 2009, 5:20 pm

[Help] Code to make player drop current weapon

Post by paintlax21 » June 24th, 2010, 3:56 am

what would be the code that makes the player drop his current weapon

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Re: [Help] Code to make player drop current weapon

Post by Soviet » June 24th, 2010, 4:18 am

Code: Select all

currentWeapon = level.player GetCurrentWeapon();
level.player TakeWeapon( currentWeapon );
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests