' 2015 modellbusse ;)

'Script Version: 1.1
'Omsi release: 2.1

'Needs:
'varlist "main_varlist.txt"

'Revision History:
'-modellbusse ;)	06.01.15	Rückfahrkamera
'-modellbusse ;)	10.01.15	Schulbusschilder


{init}
	1 (S.L.cp_Schild_pos)

{end}


{frame}
'	Aktiviert die Rückfahrkamera bei Stillstand des Busses:
	(L.L.elec_busbar_main)
	{if}
		0.1 (L.L.Velocity) >
		{if}
			1 (S.L.monitor_visible)
		{else}
			0 (S.L.monitor_visible)
		{endif}
	{endif}
{end} 

'	Mikrifon einschalter mit  "Snd_Microphone"

'	Schulbusschild Animation
{trigger:cp_Schild_drag}

	1 (S.L.cp_Schild_dragged)
	(L.L.cp_Schild_pos) (S.L.cp_Schild_lastpos)

	(L.S.mouse_x) 500 / (L.L.cp_Schild_pos) + (S.L.cp_Schild_pos) s0
	l0 0 <
	{if}
		0 (S.L.cp_Schild_pos)		
	{endif}
	l0 1 >
	{if}
		1 (S.L.cp_Schild_pos)
	{endif}

	(L.L.cp_Schild_pos) (L.L.cp_Schild_lastpos) - (L.S.Timegap) / (S.L.cp_Schild_speed)
{end}

