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.

Newcomers DBPro Corner / ai question

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 16th Mar 2009 23:37
hi how would you make an ai where the enemy can walk around a table to get the player??

i have an enemy whos a character controller and attacking with a knife. but all u have to do is stay behind the table and he cant get you. any ideas???
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 17th Mar 2009 00:31
a simple way of doing it is telling him to turn left or right if there is a collision and when there is no collision turn the opposite..

i havent done any ai pathfinding or collisions so somebody correct me if i am wrong about the theory....
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 17th Mar 2009 14:47
i dont know how to get a collision with a character controller thou. anyone have any code i could use??

Login to post a reply

Server time is: 2024-11-25 10:29:21
Your offset time is: 2024-11-25 10:29:21