AddExcludedVehicle
Last updated
Last updated
Excluded vehicles are a special kind of vehicle marked as Don't Instantiate inside the Vehicle Pool. These vehicles will not be instantiated by the system unless the user specifies to be instantiated using this method. Read more about them
The AddExcludedVehicle method will instantiate an excluded vehicle, the vehicle will work normally, but when it is removed it will not be instantiated again. Call AddExcludedVehicleToSystem to make it behave like a regular traffic vehicle.
If the index sent as a parameter is not an excluded vehicle, it will be ignored.
vehicleIndex
Index of the excluded vehicle.
position
The instantiation location. it will be the closest waypoint to this position.
completeMethod
Callback triggered after instantiation. It returns the VehicleComponent and the waypoint index where the vehicle was instantiated.