Skip to main content

BroadcastMessages

Defined in: defines.ts:434

Messages for controlling the sim via the SDK.

  • Camera and replay commands only work outside of the car.
  • Pit commands only work when in the car.

Represents irsdk_BroadcastMsg

Enumeration Members

CameraSetState

CameraSetState: 2

Defined in: defines.ts:440

Change the camera state. (Requires being outside of the car.)


CameraSwitchNum

CameraSwitchNum: 1

Defined in: defines.ts:438

Switch the driver number to follow. (Requires being outside of the car.)


CameraSwitchPos

CameraSwitchPos: 0

Defined in: defines.ts:436

Switch the camera position. (Requires being outside of the car.)


ChatCommand

ChatCommand: 8

Defined in: defines.ts:452

Broadcast a chat command.


FFBCommand

FFBCommand: 11

Defined in: defines.ts:458

Broadcast a force feedback command.


PitCommand

PitCommand: 9

Defined in: defines.ts:454

Broadcast a pit command. (Requires being in the car.)


ReloadTextures

ReloadTextures: 7

Defined in: defines.ts:450

Trigger a texture reload.


ReplaySearch

ReplaySearch: 5

Defined in: defines.ts:446

Enter replay search mode. (Requires being outside of the car.)


ReplaySearchSessionTime

ReplaySearchSessionTime: 12

Defined in: defines.ts:463

Trigger searching to a replay time. (Requires being outside of the car.) This does a search, and not a direct jump, so it may take a while!


ReplaySetPlayPosition

ReplaySetPlayPosition: 4

Defined in: defines.ts:444

Jump to a different part of the replay. (Requires being outside of the car.)


ReplaySetPlaySpeed

ReplaySetPlaySpeed: 3

Defined in: defines.ts:442

Change the play speed of a replay. (Requires being outside of the car.)


ReplaySetState

ReplaySetState: 6

Defined in: defines.ts:448

Change the replay state. (Requires being outside of the car.)


TelemCommand

TelemCommand: 10

Defined in: defines.ts:456

Broadcast a telemetry command.


UnusedPlaceholder

UnusedPlaceholder: 14

Defined in: defines.ts:467

Unused placeholder - do not use!


VideoCapture

VideoCapture: 13

Defined in: defines.ts:465

Trigger video capture.