[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4712: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4714: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4715: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4716: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
callback function | JoinUO Forums

callback function

The UO "Demo" is a slightly modified OSI UO Server and Client which was bundled on the Ultima Online Second Age retail CD. This forum seeks to reveal it's mysteries.

Posts: 11
Joined: Sun Jan 03, 2010 4:28 am
PostPosted: Tue Jan 05, 2010 3:37 pm

Posts: 11
Joined: Sun Jan 03, 2010 4:28 am
PostPosted: Tue Jan 05, 2010 3:46 pm
Ah sry i think i have understood.. Argument 2 is the timer that calls 3. argument callback function..

Site Admin
Posts: 372
Joined: Wed Apr 08, 2009 6:35 am
PostPosted: Tue Jan 05, 2010 5:49 pm
As you already guessed for callback the second parameter is a delay/timer expresed in seconds.

There is also a function shortCallback, that takes a tick as 2nd parameter. One tick being 0.25 seconds.
<Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything

Return to UO Demo

Who is online

Users browsing this forum: No registered users and 15 guests