Unknown

From DarkAI

AI COMPLETE OBSTACLES

This command must be called after you have added all your static objects to the scene. It creates the collision and waypoint data for all obstacles at once to make sure expensive operations are performed only once, as opposed to every time you add an obstacle. If you make a change by adding or removing a static obstacle after this command you must call it again to see the effects in the scene. This does not apply to View Blocking obstacles which are not involved in movement data and can be added/removed in real-time with no special commands.

You can specify a particular container to update obstacle data for, you only need to update obstacles in the container that you added or removed them, other containers are not affected. The default is -1 which updates all containers.

You only need to do this once and since it is an expensive command should not be done in your main loop.

Syntax
AI Complete Obstacles
AI Complete Obstacles Container Number

Parameters
Container Number, (optional) The id of the container you want to update the obstacles data for.

Return
n/a