View Full Version : Sleep commands...
JDKNITE188
10-06-2000, 11:52 AM
I have two questions about sleep commands in cog....
1) What are some sleep commands?
2) What is the unit rate of JK time compared
to reality time (like 1 unit of JK time
is X seconds)?
------------------
I am a scout of knowledge, come with me and enter the web of intelligence and prosperity.....
Fernando_the_Hunn
10-06-2000, 12:16 PM
only Sleep command I can think of is "Sleep()". parameter is in seconds.
------------------
cogs dont kill people. people kill people...
mailto:no_oneatall@hotmail.comno_oneatall@hotmail. com</A>
ICQ 81116825
===========================================
Evil Cog master of the Western TC!
GuNbOy
10-06-2000, 03:18 PM
to use the sleep command is simple. lets say you want a key to play then 2 seconds later you want a sound to play. but you dont want to go through the trouble of using a timer, so use somthing like:
PlayKey(blah, blah, blah);
// wait 2 seconds to do the next thing.
Sleep(2);
PlaySoundThing(blah, blah, blah);
Hideki
10-06-2000, 03:36 PM
But keep in mind that "Sleep()" will freeze the cog re-entering while sleeping.
That means, when you use it, and say, it's a surface cog, the surface gets touched, but the touched message will not get called while it's sleeping, so, if you put that in a kyle cog and make it sleep for like 60 seconds or something, then probably you don't even get damages or make bubbles underwater, so if that causes any problem, use "SetTimer(time)", which won't make cog sleep.
------------------
http://millennium.massassi.net/ - Millennium
JDKNITE188
10-07-2000, 04:07 PM
Thanks everybody!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.