Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   how would i (https://forums.graalonline.com/forums/showthread.php?t=73487)

Alure1316 04-14-2007 08:35 PM

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.

Novo 04-14-2007 08:38 PM

PHP Code:

function onPlayerTouchsMe()
  {
  
hide();
  
sleep(2);
  
show();
  } 

?

Kristi 04-14-2007 08:39 PM

well, that exact script in gs2

PHP Code:

function onPlayerTouchsMe() {
  
hide();
  
sleep(2);
  
show();


Edit: wow novo posted exactly when i did

Alure1316 04-15-2007 03:16 AM

ok, thanks guys. but i heard you need to have a gs2 enabled server to be able to test gs2 scripts. :(

Twinny 04-15-2007 03:48 AM

All servers are GS2 enabled. You can't test GS2 offline though :(


All times are GMT +2. The time now is 12:17 AM.

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