Help getting info from markers or objects
by Kevin Ostrowski · in Torque Game Engine · 02/24/2002 (3:27 pm) · 0 replies
I'm trying to write some dummy AI for what will be pedestrians and random crowd type people like that. They don't need to do much most of the time, and I want to keep their AI routines as fast as possible so I can throw as many as possible onscreen at once.
I want them to go to a marker (or some such designated place), pick a new marker to go to, and repeat. Each marker they arrive at will have a list of few other markers for them to go to next, so that they're moving in a random but orderly fashion.
I'm not sure how I should go about getting the information out of the markers. Should I watch a bounding box in each area, so that as the bots enter it, they'll be able to tell which marker they're at, and then extract the next few marker choices they have? I'm guessing I would do that with something like this -
clientConnection->getFieldDictionary()->getFieldValue("status");
I've only had this for a few days, so I'm not quite settled in yet. I looked through the forums, but I didn't see anything that helped too much. I haven't been able to figure out how to make objects act as pointers to others.
Also, I want to do this in engine, and not with scripts if I can. Thanks
I want them to go to a marker (or some such designated place), pick a new marker to go to, and repeat. Each marker they arrive at will have a list of few other markers for them to go to next, so that they're moving in a random but orderly fashion.
I'm not sure how I should go about getting the information out of the markers. Should I watch a bounding box in each area, so that as the bots enter it, they'll be able to tell which marker they're at, and then extract the next few marker choices they have? I'm guessing I would do that with something like this -
clientConnection->getFieldDictionary()->getFieldValue("status");
I've only had this for a few days, so I'm not quite settled in yet. I looked through the forums, but I didn't see anything that helped too much. I haven't been able to figure out how to make objects act as pointers to others.
Also, I want to do this in engine, and not with scripts if I can. Thanks