IScriptVariables
Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll
public interface IScriptVariablesA 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.
Properties
Section titled “Properties”NumberNames
Section titled “NumberNames”string[] NumberNames { get; }StringNames
Section titled “StringNames”string[] StringNames { get; }Methods
Section titled “Methods”GetNumber
Section titled “GetNumber”float? GetNumber(string name);The value, or null when the vehicle has no such variable.
Parameters
namestring
Returns float?
GetString
Section titled “GetString”string? GetString(string name);The value, or null when the vehicle has no such string variable.
Parameters
namestring
Returns string?
