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 12-17-2001, 08:25 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
timereverywhere

How exactly does this command work?
Reply With Quote
  #2  
Old 12-17-2001, 08:35 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 12-17-2001, 09:25 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #4  
Old 12-17-2001, 09:46 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #5  
Old 12-17-2001, 10:55 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Thanks for your help
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 09:06 PM.


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