Jump to content

Recommended Posts

Posted

If you want to set an To Signal as Trigger (as shown in the code below) your unable to create there one. You only can Sst the trigger point on an entry signal like "3792_Se_A".

I think it have something todo with the Signals you see in the top right corner. You can only set the Trigger in Signals you see in the hud in the top right corner.

    CreateSignalTrigger(FindSignal("3792_Se_ToA"), 500,
    {
	    check = function (trainset)
            Log("Überprüfung der Lok")
    		return true
    	end,
    	result = function(trainset)            
            Log("Überprüfung geschafft")
            if t4_info.type == "liquid" then
                Log("Ist Gefahrzug. Geh an seite")
                VDSetRouteWithRepeat("3792_Se_A", "3792_Se_G", VDOrderType.TrainRoute,0,15)
            else
                Log("Normal. Fahre ein")
                VDSetRouteWithRepeat("3792_Se_A", "3792_Se_F", VDOrderType.TrainRoute, 0, 15)
            end
            Log("Evt. Fahrstraße eingestellt")
	    end
    })

 

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy