CommsRadioUtility Class
A convenience class that allows classes that inherit AStateBehaviour to interact with their parent CommsRadioMode.
Namespace
CommsRadioAPI
Base Types
  • object
graph BT Type-->Base0["object"] Type["CommsRadioUtility"] class Type type-node

Syntax

public class CommsRadioUtility

Properties

Name Property Type Summary
SignalOrigin Transform
Provides readonly access to the signal origin transform stored on the Comms Radio mode.

Methods

Name Return Value Summary
GetMaterial(VanillaMaterial) Material?
Get a material used by the vanilla Comms Radio modes to highlight vehicles.
PlaySound(VanillaSoundCommsRadio, Transform?) void
Play a vanilla sound from the Comms Radio.
PlayVehicleSound(VanillaSoundVehicle, TrainCar, bool) void
Play a vanilla sound from a locomotive or wagon.
StartCoroutine(IEnumerator) Coroutine
Start a coroutine on the Comms Radio mode.
StopCoroutine(Coroutine) void
Stop a running coroutine.