Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Sleep commands...
Sleep commands...
2000-10-06, 8:52 AM #1
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.....
2000-10-06, 9:16 AM #2
only Sleep command I can think of is "Sleep()". parameter is in seconds.

------------------
cogs dont kill people. people kill people...

[url="mailto:no_oneatall@hotmail.com"]mailto:no_oneatall@hotmail.com[/url]no_oneatall@hotmail.com</A>
ICQ 81116825
===========================================
Evil Cog master of the Western TC!
cogs dont kill people. people kill people...

mailto:no_oneatall@hotmail.comno_oneatall@hotmail.com</A>
ICQ 81116825
==============================================
((Evil Cog Master))
2000-10-06, 12:18 PM #3
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);
I'm just an old man with a skooma problem.
2000-10-06, 12:36 PM #4
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
2000-10-07, 1:07 PM #5
Thanks everybody!

↑ Up to the top!