Reset industry variable

<kuid:368725:60033>

Author: ElStoko
Kind: drivercommand
Build: 4.6
Size: 26.35KB
Uploaded: 2025-12-29
Downloads:
0
-
0
+

Reset industry variable

A driver command to reset an industry variable. Will only work for industries with handlers to receive the messages sent by this driver command.
The sent message is in 2 parts: major and minor. The major message is 'DCRequest' (Driver Command Request) and the minor message is 'reset_<variable name>'.
Variables will be added as the need arises. Currently supported variable names are:
lastTrain Records the last train to enter an industry fixed track of ElStoko industry assets. Employed to prevent unwanted repeat triggering, but can prevent wanted triggering in a few circumstances.

Note that while the variable name in the sent minor message must be equal to one of the variable names expected by the industry's message handler, the variable actually reset by the message handler can have a different name.

Author: Leigh Stokes (ElStoko)

    Reset industry variable
  • config.txt 2.63KB
  • screenshot.jpg 19.71KB
  • setindustryvarcommand.gs 4.19KB
  • setindustryvarschedulecommand.gs 2.95KB
  • tag.texture.txt 41 bytes
  • tag.tga 13.08KB

VE25: The tag 'variable1' in container 'string-table' is empty.
VE25: The tag 'variable2' in container 'string-table' is empty.

User photos

No one has uploaded a photo of this object yet.