Vehicle constants can be of the kinds Boolean, Integer, Float and String. Additionally, ordinal types can be defined. Those are internally integer constants, but are not used as numbers, but as names - for example "red", "yellow", "green" or "north", "east", "south", "west".
2.1 Script variables
Every vehicle constant has to be linked to a script variable. Therefore, the script variable has to be declared in the public vars section. The type can be boolean, integer, single or string.
Setting up vehicle constants
With "Add", an unlimited amount constants can be created. Delete them with the proper button in the proper row.
The "name" is the language ID of the constant-name, which is shown to the player (see https://www.lotus-simulator.de…zeug-hints/#1-Allgemeines ). "Linked variable" is the linked variable, that should be assigned the player-chosen value.
On integer variables, a bigger text field is displayed besides the type. If the variable should be interpreted ordinal, the name strings can be entered here. Those are language IDs, as well!
At the right, the minimum, maximum and default value can be set. Minimum and maximum for integer and float, only, of course.
3 Additional initialize procedure
To enable the script to react to the player-given values, LOTUS once calls the procedure InitializeAfterConstSet right after assigning the values to the variables.