Quote:
Originally posted by joseyisleet
-=Josey=-
NPC Code:
if (playerenters&&hasweapon(yourweaponhere)){
toweapons yourweaponhere;
sleep .1;
destrory;
}
You may have to make the sleep just a tad bit longer. It should work though. Or in your weapon you could use:
NPC Code:
if (playerenters){
toweapons Destroying soon;
timeout=.05;
}
if (timeout&&hasweapon(Destroying soon)){
if (strequals(#L,levelname.graal)){
destroy;
}
timeout=.05;
}
You could use either of those two.
|
The question is when do you want the weapon to be destroyed?
if it is part of a trading system or something then you could add the bottom code from josey into everyweapon or try and make a global one.