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 / Dark AI Waypoints - Follow once and stop?

Author
Message
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 30th Mar 2008 15:40
I've just gotten Dark AI, and it seems to be working pretty nicely for the most of the time, but what i'm trying to do is make an object (loaded previously in DBP) follow a waypoint, and then after it follows that waypoint, it should STOP. Not begin to follow the waypoint again.

Some code I tried:



I also tried using paths, like this:



But it didn't work at all either.

For each code snippet i'm updating the AI using AI UPDATE in the main DO-LOOP.

Any help is appreciated.


kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 30th Mar 2008 16:08 Edited at: 30th Mar 2008 17:02
Ive made this code really quickly so you will have to adapt it a little to work with multiple entitys.



I hope it helps!


Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 31st Mar 2008 07:37
Thanks! I've integrated your code into mine, but when I run the program I get:

Friendly Object (0) Does Not Exist.

The code for the friendly object creation is:



training_plane is a .X model which has been loaded, rotated, scaled and positioned previously in the program.


kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 31st Mar 2008 19:46
Start your entitys off at 1 instead of 0. I do and it works fine.


Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 3rd Apr 2008 09:27
Hmm, still no luck. For the moment i've cut the code out of the game, i'll probably add it back in eventually and play around with it some more. Thanks for the help tho0ugh!


Login to post a reply

Server time is: 2024-11-24 22:59:27
Your offset time is: 2024-11-24 22:59:27