Table of Contents

Class CheckpointTrigger

Namespace
LibreRally.Race
Assembly
LibreRally.dll

A trigger component that detects when a vehicle passes through a checkpoint.

[ComponentCategory("LibreRally")]
public class CheckpointTrigger : StartupScript, IIdentifiable, ICollectorHolder
Inheritance
CheckpointTrigger
Implements
IIdentifiable
ICollectorHolder
Inherited Members

Properties

CheckpointIndex

Gets or sets the index of this checkpoint in the race.

public int CheckpointIndex { get; set; }

Property Value

int

Size

Gets or sets the physical size of the checkpoint trigger volume.

public Vector3 Size { get; set; }

Property Value

Vector3

Methods

Start()

Creates and attaches the trigger volume that reports checkpoint crossings.

public override void Start()

Events

Triggered

Occurs when a vehicle body enters the checkpoint volume. Provides the checkpoint index.

public event Action<int>? Triggered

Event Type

Action<int>