Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   timereverywhere (https://forums.graalonline.com/forums/showthread.php?t=19108)

btedji 12-17-2001 08:25 PM

timereverywhere
 
How exactly does this command work?

AlexH 12-17-2001 08:35 PM

just do

if (playerenters||created){
timereverywhere;
}

if (timeout) {
code
}

and that will keep track of timeout for the first person in the level
so when a second player comes into the level instead of each player having a different timeout it will just continue to use the timeout from the first player that ebntered the level so it happens at the same time for each player

joseyisleet 12-17-2001 09:25 PM

I'm pretty sure you have to also put timeout=.05; or something in it also, I don't think that timereverywhere; kicks in the timeout command by itself, but I could be wrong. - shrugs.

TDO2000 12-17-2001 09:46 PM

if u use it in a normal NPC in one of your levels for example

if(playerenters){
timereverywhere;
timeout=.05;
}

if(timeout){
for(this.i=0;this.i<4;this.i++){
if(keydown(this.i)){
setplayerprop #c,Don't press it!!;
freezeplayer .05;
}
}
timeout=.05;
}

if u use the timereverywhere here the timeout will work for all players in the level... if u would delete it only the isleader would get the timeout...
I think this is the main function of timereverywhere but there are some others but I am not sure...

btedji 12-17-2001 10:55 PM

Thanks for your help


All times are GMT +2. The time now is 05:40 AM.

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