Spawn Waypoint Selector
Description
Controls the selection of a free waypoint to instantiate a new vehicle on.
Declaration
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
Default delegate implementation can be found inside DefaultDelegates.cs
Last updated