Table of Contents

Class VehiclePatrolRoute

Namespace
S1API.Law
Assembly
S1API.dll

Represents a vehicle patrol route with waypoints for police vehicles to follow.

public sealed class VehiclePatrolRoute
Inheritance
VehiclePatrolRoute
Inherited Members
Extension Methods

Properties

Position

Gets the position of the route object itself.

public Vector3 Position { get; }

Property Value

Vector3

RouteName

Gets the name of this patrol route.

public string RouteName { get; }

Property Value

string

StartWaypointIndex

Gets the starting waypoint index for this route.

public int StartWaypointIndex { get; }

Property Value

int

WaypointCount

Gets the number of waypoints in this route.

public int WaypointCount { get; }

Property Value

int

Methods

GetWaypointPosition(int)

Gets the position of a waypoint at the specified index.

public Vector3 GetWaypointPosition(int index)

Parameters

index int

The waypoint index.

Returns

Vector3

The waypoint position, or Vector3.zero if invalid index.