Game Development Community

Dropping a weapon...

by Derrick Austin · in Technical Issues · 11/27/2007 (10:09 am) · 3 replies

I use this code to raise the weapon:

commandToServer('use',"Crossbow");

How could I check to see if the weapon is up?

If the weapon is up, How would I drop the weapon?

#1
11/27/2007 (6:25 pm)
I figured it out myself lol...

$player.setinventory($weapon, 0);

$player.getinventory($weapon)
#2
11/28/2007 (6:31 pm)
%player.getMounted(0) should work better.
#3
11/28/2007 (6:34 pm)
Hey thanks!