//Ręczna wajcha do zwrotnicy
//Ustawiana z prawej strony dla rozjazdu w lewo
//Autor: Żabek
//(p1) - nazwa zwrotnicy
//(p2)(p3)(p4) - współrzędne
//(p5) - obrót
//(p6) - nazwa pliku z teksturą numeru zwrotnicy

origin (p2) (p3) (p4)
rotate 0 (p5) 0
//node -1 0 (p1)_Wz model 0.75 0 0.5 0 pmppw/WzLR.t3d (p6) endmodel
node -1 0 (p1)_Wz model 0 0 0 0 pmppw/WzLR.t3d (p6) endmodel
rotate 0 0 0
endorigin
node -1 0 (p1) eventlauncher (p2) (p3) (p4) 5.0 t 0 (p1)+ (p1)- end 


event (p1)- multiple 0.0 none (p1)_- (p1)_a (p1)_b (p1)_c (p1)_a1 endevent
event (p1)+ multiple 0.0 none (p1)_+ (p1)_d (p1)_e (p1)_f (p1)_d1 endevent

event (p1)_+ switch 0.0 (p1) 0 endevent
event (p1)_- switch 0.0 (p1) 1 endevent

event (p1)_a animation 0 (p1)_Wz rotate latarnia 0 0 -90 90 endevent
event (p1)_b animation 0 (p1)_Wz rotate mechanizm 0 60 0 60 endevent
event (p1)_c animation 0 (p1)_Wz rotate ciezar 0 -160 0 160 endevent
event (p1)_a1 animation 0 (p1)_Wz rotate numer_zwrot 0 0 -90 90 endevent

event (p1)_d animation 0 (p1)_Wz rotate latarnia 0 0 0 90 endevent
event (p1)_e animation 0 (p1)_Wz rotate mechanizm 0 0 0 60 endevent
event (p1)_f animation 0 (p1)_Wz rotate ciezar 0 0 0 160 endevent
event (p1)_d1 animation 0 (p1)_Wz rotate numer_zwrot 0 0 0 90 endevent