Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Resolved: 'sleep' glitch (https://forums.graalonline.com/forums/showthread.php?t=61111)

napo_p2p 09-09-2005 10:14 AM

Resolved: 'sleep' glitch
 
For example a simple GS1 door script:

NPC Code:
//#CLIENTSIDE
if (playertouchsme) {
hide;
sleep 2;
show;
}



With v4, if you touch the door and exit the level, the script seems to freeze. When you go back to the level with the door , it doesn't show anymore.

The script works correctly if you do not exit the level.

Sildae 09-09-2005 02:49 PM

NPC Code:
if (playerenters) {
if (this.last_opened + 2 < timevar2)
show;
}

if (playertouchsme) {
hide;
this.last_opened = timevar2;
timeout = 2;
}

if (timeout) {
show;
}



Why is your door hiding clientside? Do you want people to appear to magically pass through closed doors?

napo_p2p 09-09-2005 06:47 PM

It's just an example of a script that is frozen because of 'sleep' when someone exits a level.

CheeToS2 09-15-2005 06:12 AM

Fixed in 4.0.1.9 :)

napo_p2p 09-21-2005 11:27 PM

Quote:

Originally Posted by CheeToS2
Fixed in 4.0.1.9 :)

It's fixed for the most part.

It still happens to scripts on gmaps.


All times are GMT +2. The time now is 11:43 PM.

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