OR (if you wanted an invis weapon) you could do
NPC Code:
if (playertouchsme) {
toweapons Invis Thingy;
}
if (weaponfired&&!invison) {
sleep 0.05;
set invison;
timeout=0.05;
}
if (weaponfired&&invison) {
sleep 0.05;
unset invison;
}
if (timeout&&invison) {
hideplayer 0.1;
timeout=0.05;
}
I think that would work...