// Semafor zastępczy

origin (p2) (p3) (p4)
rotate 0 (p5) 0

node -1 0 (p1) model 0 0 0 0 sem/glowice/W3SzYPb_dd.t3d tabl/(p6) Lights 0 endmodel            //glowica 
node -1 0 none model 0 0 0 0 sem/slupy/ToSpTmYPbg.t3d sem/slupy.bmp endmodel       //slup
node -1 0 none model 0 0 0 0 sem/drabinki/D2YP.t3d sem/slupy.bmp endmodel

node 800 50 none lines 80 80 80 100.0                                          //szara linia zeby byl maszt widoczny z daleka
0.0 0.0 0.0	0.0 4.5 0.0 
endline


rotate 0 0 0
endorigin

// ZDARZENA ZASADNICZE
event (p1)_s1 multiple 0.0 none (p1)_ligh1 (p1)_sem_info_stop endevent
event (p1)_sz1 multiple 0.0 none (p1)_ligh2 (p1)_sem_info_v20 endevent

event (p1)_sem_info getvalues 1.0 (p1)_sem_mem endevent

node -1 0 (p1)_sem_mem memcell (p2) (p3) (p4) SetVelocity 0 0 none endmemcell

//zdarzenia okreslajace przyblizona predkosc przy nastepnym semaforze
event (p1)_sem_info_stop updatevalues 0.0 (p1)_sem_mem SetVelocity 0 0 endevent
event (p1)_sem_info_v20 updatevalues 0.0 (p1)_sem_mem SetVelocity 20 -1 endevent

// przelaczanie swiatel
event (p1)_ligh1 lights 0.0 (p1) 0 endevent
event (p1)_ligh2 lights 0.0 (p1) 2 endevent

