New scripting function - pickDroidStructLocation
Posted: 16 Mar 2010, 21:31
In the next release, whatever that will be named, there will be a new script function pickDroidStructLocation(). I had to introduce this function because the pickStructLocation() and pickStructLocationB() function calls do not check that you can actually build on the position the function returns. See #1626 for a closer explanation of the issue. Future code should use the new pickDroidStructLocation() rather than the other two. Parameter wise it is the same as pickStructLocationB() except it has a new first parameter that is the droid to build the structure. If it returns true, the coordinates it sets are guaranteed to be reachable by that droid.
The default AI scripts will be updated to use this function as time permits.
The default AI scripts will be updated to use this function as time permits.