Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Namespaces | Data Structures | Functions
Script-to-script

Description

^AngelScript^ Documents built-in scripts of the game.

Namespaces

namespace  Script2Script
 

Data Structures

class  Script2Script::racesManager
 
class  Script2Script::raceBuilder
 

Functions

funcdef void Script2Script::RACE_EVENT_CALLBACK (dictionary@)
 
void Script2Script::raceEvent (int trigger_type, string inst, string box, int nodeid)
 
void Script2Script::raceCancelPointHandler (int trigger_type, string inst, string box, int nodeid)
 

Function Documentation

◆ RACE_EVENT_CALLBACK()

funcdef void Script2Script::RACE_EVENT_CALLBACK ( dictionary@  )

A function signature for the callback pointers.

When you need to use a RACE_EVENT_CALLBACK as parameter, then you should create a function that receives a dictionary@ as parameter. Example:

// example
void myCallback(dictionary@ d)
{
// ...
}

◆ raceCancelPointHandler()

void Script2Script::raceCancelPointHandler ( int  trigger_type,
string  inst,
string  box,
int  nodeid 
)

called when the user drives through a cancel point

Remarks
Do not call this function directly!

◆ raceEvent()

void Script2Script::raceEvent ( int  trigger_type,
string  inst,
string  box,
int  nodeid 
)

called when the user drives through a checkpoint

Remarks
Do not call this function directly!