Skip to content

IScriptVariables

Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll

public interface IScriptVariables

A vehicle’s script variables (OMSI’s public variable table and string variables) as the latest frame left them. Names match case-insensitively, as OMSI scripts do. For another player’s bus these are the replicated values, which may lag by one network update.

string[] NumberNames { get; }
string[] StringNames { get; }
float? GetNumber(string name);

The value, or null when the vehicle has no such variable.

Parameters

  • name string

Returns float?

string? GetString(string name);

The value, or null when the vehicle has no such string variable.

Parameters

  • name string

Returns string?