'########################
'Railway Crossing
'########################

'Railway Crossing
'Phase 0..2, 9..11: active
'Else: inactive

'(c) 6.7.2009 Marcel Kuhnt

'Script Version: 1.0
'Omsi release: 1.0

'Needs:
'- none

{frame}
	(L.L.TrafficLightPhase) s0

	l0 0 >= l0 2 <= &&
	l0 9 >= l0 11 <= && ||
	(L.S.GetTime) d trunc - 0.5 < && s0

	l0 (L.L.Light) ! &&
	{if}
		(T.L.ev_bue_bell)
	{endif}

	l0 (S.L.Light)
{end}