Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Set AI entity to ground level

Author
Message
Mychal B
13
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 29th May 2011 12:04
In my level I have some slopes and whatnot. I was trying to figure out a solution to tell the AI's object when to go up and when to go down. I tried this with raycast, but even if I did get it to work properly it interferes with other objects. I can't use a group raycast because the groups have already been set for another purpose. Any ideas?

Thanks
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 3rd Jul 2011 19:42 Edited at: 3rd Jul 2011 19:46
Hi Mychal B

This is what vaguely springs to my mind. This may not work the way you desire, but each significant height within your level can be given a different container, and if necessary a zone.

The AI system leaves you responsible for Y axis movement (besides ducking); so; when you want your entity to go up the slope, you change its current container. You also change the entity Y position to that of its current slope height; using intersect object or physics ray trace commands; based on its position from the slope.

If you do not change its container, the entity will think that it can still walk around via your waypoints (which may be set automatically providing you are using the complete obstacles procedure)

Zones can be used to run certain functions or sub routines per position on that slope, in relation to the positions of other entities or players in their own zones; using [AI Get Entity In Zone] or [AI Get Player In Zone] respectively.

Login to post a reply

Server time is: 2024-04-19 11:58:22
Your offset time is: 2024-04-19 11:58:22