Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.