Game Development Community

NPCs that know when they're doing something?

by Michigan State University (#0021 · in Torque Game Engine · 06/14/2006 (10:19 am) · 1 replies

This is basically simple. I have a bot that needs to perform action A, and once completing action A, does action B, and so on. The quick fix for this is 'do A, schedule B,' but that requires knowing how long A will take. I grabed the Task Manager system from AiPlayer in the fps demo, which does a good job keeping track of what tasks to do, but it doens't provide the bot with any idea of when he's completed one task and should move on to another. Any thoughts?

#1
06/15/2006 (10:20 am)
Hi, If the task is a function, and has an end. Then couldn't you feed back a "Done"?

If the task is an animation, could you not use a animation trigger to then trigger a "done"?

2c