Jump to content

Recommended Posts

Posted

 

If you want to set an ISp, IISp or IIISp Signal as Trigger (as shown in the code below) your unable to create there one. You only can set the trigger point on an entry signal like "5291_ZW_D".

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("5291_ZW_ISpD"), 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("5291_ZW_D", "5291_ZW_K2", VDOrderType.TrainRoute,0, 15)
	else
		Log("Normal. Fahre ein")
		VDSetRouteWithRepeat("5291_ZW_D", "5291_ZW_K2", 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