Quote:
Originally Posted by cbk1994
I assume this is in a level NPC? In that case, you should just use
PHP Code:
function onCreated(){
setshape( 1, 32, 32);
setimg( "beer.png");
}
//#CLIENTSIDE
function onPlayerTouchsme(){
setimg( "beer.png");
setshape( 1, 32, 32);
player.hearts += 5;
player.bombs += 5;
player.darts += 5;
hide();
}
|
That would just hide the NPC but the NPC itself would still be there. If you use destroy, the NPC itself is destroyed.
It all depends on how he wants to use it, but hide is not the same as destroy.