View Single Post
  #7  
Old 05-29-2009, 12:17 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
I assume this is in a level NPC? In that case, you should just use

PHP Code:
function onCreated(){
  
setshape13232);
  
setimg"beer.png");
}
//#CLIENTSIDE
function onPlayerTouchsme(){
  
setimg"beer.png");
  
setshape13232);
  
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.
Reply With Quote