Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-14-2007, 08:35 PM
Alure1316 Alure1316 is offline
Registered User
Alure1316's Avatar
Join Date: Jan 2006
Location: San Bernardino, California
Posts: 123
Alure1316 will become famous soon enough
how would i

script a door in gs2.


in gs1 i usually script it like this:

if (playertouchsme) {
hide;
sleep 2;
show;
}

-_-

is it different in gs2.
Reply With Quote
  #2  
Old 04-14-2007, 08:38 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
PHP Code:
function onPlayerTouchsMe()
  {
  
hide();
  
sleep(2);
  
show();
  } 
?
Reply With Quote
  #3  
Old 04-14-2007, 08:39 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
well, that exact script in gs2

PHP Code:
function onPlayerTouchsMe() {
  
hide();
  
sleep(2);
  
show();

Edit: wow novo posted exactly when i did
__________________
Reply With Quote
  #4  
Old 04-15-2007, 03:16 AM
Alure1316 Alure1316 is offline
Registered User
Alure1316's Avatar
Join Date: Jan 2006
Location: San Bernardino, California
Posts: 123
Alure1316 will become famous soon enough
ok, thanks guys. but i heard you need to have a gs2 enabled server to be able to test gs2 scripts.
Reply With Quote
  #5  
Old 04-15-2007, 03:48 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
All servers are GS2 enabled. You can't test GS2 offline though
Reply With Quote
Reply


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 06:39 PM.


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