Unknown
From DarkAI
AI
END NEW OBSTACLE
This command completes the new
obstacle and adds it to the specified container. If you are not using
different containers use the default value of 0. The height defines
if it is a full height or half height obstacle, the difference being
that half height objects do not obstruct an entity's view whilst
standing, but do whilst ducking. Both block an entity's path when
moving to a destination.
The obstacle type parameter allows
you to choose between an obstacle that blocks both movement and view
(normal) or an obstacle that only blocks view, meaning an entity is
free to move around as if the obstacle didn't exist but cannot see
through any edges of the obstacle. A bit like hanging cloth or a
closed door (which can be opened). Unlike normal obstacles view
blocking obstacles do not affect the waypoint network when added or
removed, as such view blocking obstacle can be added or removed with
very little impact on performance and can be done in the main
loop.
You must call AI Complete Obstacles
after this command if you use an obstacle type of 0 to see the
changes in the AI system. This does not apply if you are creating
view blocking obstacles (type 1).
Syntax
AI
End New Obstacle Container Number, Half Height, [Obstacle
Type]
Parameters
Container Number, The id
of the container you want to add the obstacle to, must exist.
Half
Height, 0 for a half height object 1 for a full height
object.
Obstacle Type, (optional) 0 for a normal obstacle,
1 for a view blocking obstacle. Default is 0.
Return
n/a