City Based Parking and Routing System API Documentation

RoadSystem.CreateObstacle Method 

Creates a timed obstacle to be placed on a lane.

public IVehicle CreateObstacle(
   int timeToLive
);

Parameters

timeToLive
The total number of simulation steps the obstacle is active, -1 to signal eternal life.

Return Value

A newly created Obstacle.

See Also

RoadSystem Class | CBPRS.Infrastructure Namespace