Asset location: ..\Assets\SAD2021\BLS\scenaryIKB3\BueIKB
Use next Script lines to Disable the lights Triggered by a train via ScenarioScript.lua (standard is Enabled, when no lines are added in ScenarioScript.
CONDITION_NOT_YET_MET = 0 -- needed for certain functions
CONDITION_SUCCEEDED = 1 -- needed for certain functions
CONDITION_FAILED = 2 -- needed for certain functions
----------------------------------------------------------------
function Initialise()
SysCall ( "ScenarioManager:BeginConditionCheck", "LightsOff" );
end
-----------------------------------------------------------------
function TestCondition ( condition )
if condition == "LightsOff" then
SysCall("ScenarioManager:ShowMessage","MESSAGE OUT OF SCENARIOSCRIPT","LightsOff");
return CONDITION_SUCCEEDED
else
return CONDITION_NOT_YET_MET
end
end
----------------------------------------------------------------