Page 1 of 1

AI-Waypoints?

Posted: June 21st, 2012, 5:31 pm
by lzrstrm
Ok so I was trying to kae the tutorial map

http://www.sandboxgamemaker.com/wiki/in ... ial#Part_5

And I got stuck on part 5 because I don't understand the concept of AI and waypoints. Can anyone plz give me a better decrition on how to do part five in the tutorial map because I don't really know what the waypoints are for and how to properly use them.

Re: AI-Waypoints?

Posted: June 23rd, 2012, 4:42 am
by Denyer
If you follow the tutorial and use the commands

Code: Select all

dropwaypoints 1
experimentalwapoint 1
debug 32
As you walk around the map you will drop waypoints (debug 32 is the AI debug channel and this will allow you to see the waypoints). The idea, as far as I know, is to create a "net" of waypoints over the area. Then the critters you create following the tutorial will automatically use these waypoints (provided you've written the attack directives in the correct files). Note that if you jump you will also drop waypoints in the air.

Be sure to use the command

Code: Select all

savewaypoints
As this will save the waypoints you have laid. If you've done this correctly you should see a message on the screen telling you the waypoints have been stored

I hope this makes sense

Re: AI-Waypoints?

Posted: June 23rd, 2012, 3:53 pm
by lzrstrm
Thx Denyer
I ended up figuring it out on my own :D
but thx anyway

Re: AI-Waypoints?

Posted: June 23rd, 2012, 4:23 pm
by Denyer
No problem, glad you got it sorted :)