Game Development Community

AI ordering of tasks

by Keith Killilea · in Technical Issues · 09/13/2004 (3:47 am) · 2 replies

Hello a noobie here,
Could someone please inform me of how to schedule AI tasks so they dont overlap and cancel each other.

p.s not the schedule function.
but to
>walk to point
>then wave (animate)
>then bring up dialog box

Any help is much appreciated.
Cheers

About the author

Torque Games -: Camelot Galway, Spike Dash, 14 Tribes, Illumina, & Terra: Formations. -: CEO of Riverplay Games. -: CEO of Wiccle Limited - Open Source / Open Core CMS Developer & Publisher.


#1
09/13/2004 (8:17 am)
You can get script callbacks for most of those things. Couldn't you just wait for the callback, then advance to the next step?
#2
09/14/2004 (8:10 am)
@David,

AI is often programmed using FSM ( Finite State Machines ), you should look for info on how they are programmed.

But in your case, this isn't really hard to do :

On the OnReachDestination function include a call to SetActionThread( wave ) (or something like it) then schedule a function to bring up the dialog box. If you don't schedule the function, the box will apear over the character while waving.

HTH