Spawn Waypoint Selector
Description
Controls the selection of a free waypoint to instantiate a new vehicle on.
Declaration
public delegate int SpawnWaypointSelector(List<Vector2Int> neighbors, Vector3 position, Vector3 direction, VehicleTypes carType, bool useWaypointPriority);Returns
int - a waypoint index
Parameters
Name
Description
neighbors
A list of the cell indexes that are neighbors to the player cell.
position
The player position.
direction
The player direction.
vehicleType
The vehicle type for which the waypoint is being selected.
useWaypointPriority
Specifies whether waypoint priority is enabled for selection or not.
Set Method
Example
Last updated