Jump to content
Sign in to follow this  
dig69

AI and waypoint sequence. Any ideas?

Recommended Posts

Do AI make their own waypoints between the waypoints given to them on the fly... example: i make a unit and give him a WP to move to...

wp = grp addwaypoint [pos,5];

Now .... everything I know and have read say that this waypoint is number 1 in the sequence.... yet if i add this to the code

[grp,1] setwaypointstatements ["true","do this stuff"];

the bastard will only drive part of the way ... then "do this stuff" at a random spot ... testing it multiple times gives a different result each time.. but he only seems to make it to the given location of the made up WP when it is only a short distance.. if the position is .... say 3 towns away .. he will get maybe a 1/4 of theway there and the "do this stuff" will happen like he's at the waypoint...

I can only assume that the AI make up multiple WP's between him and the one I created for him... which push that WP way at the top of the sequence.

I suppose I could create one waypoint far away and then make several setStatements like this.

wp = grp addwaypoint [pos,5];

[grp,1] setwaypointstatements ["true","hint "this is 1""];

[grp,2] setwaypointstatements ["true","hint "this is 2""];

[grp,3] setwaypointstatements ["true","hint "this is 3""];

and so on...

Things aren't Jive'ing in the world of AI and script created waypoints.. some strange crap going on.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×