Help

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
thader2005
CJ Wannabe
CJ Wannabe
Posts: 12
Joined: May 24th, 2008, 9:31 am

Help

Post by thader2005 » June 5th, 2008, 11:46 pm

what is command endon? and which are these values?

and another question which are the values of waittill?


thanks for all

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Help

Post by Drofder2004 » June 6th, 2008, 7:24 pm

The values are dynamic.

endon = Will force a function to end when the variable is called.
waittill = Will force the thread to wait until the variable is called.

The two above are used in conjunction with the "notify" function.

And the notify function requires an entity to be applied to...

E.g

Code: Select all

main()
{
   thread doNotify();
   level waittill("put_whatever_you_want_here");
   iprintln("Hello");
}

doNotify()
{
   wait 30;
   level notify("put_whatever_you_want_here");
}
1. Function 'doNotify()' is threaded
2a. 'doNotify()' starts counting to 30
2b. Main function is told to wait until variable is called
3a. 'doNotify()' function reaches 30 and notifies level of the variable
3b. Main function gets message that variable has been called and stops waiting.
4. iPrintLn is called.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests