[eventLoop]
>ifeq{Vehicle[1].destroyed}=1
>ifeq{Vehicle[2].destroyed}=1
>ifeq{Vehicle[3].destroyed}=1
>ifeq{Vehicle[4].destroyed}=1
:Memory.i=-1000
:WinRect.left=>Read{Player.x}
:WinRect.left=>IntAdd{Memory.i}
:WinRect.top=>Read{Player.y}
:WinRect.top=>IntAdd{Memory.i}
:Memory.i=1000
:WinRect.right=>Read{Player.x}
:WinRect.right=>IntAdd{Memory.i}
:WinRect.bottom=>Read{Player.y}
:WinRect.bottom=>IntAdd{Memory.i}
>Destroy{Memory.i}
>endif
>endif
>endif
>endif

[eventGameStart]
/Inicjalizacja (pory dnia, potrzebnych zmiennych itp.)/
>SetR{GameEngine.ambientlight}=0
>SetG{GameEngine.ambientlight}=0
>SetB{GameEngine.ambientlight}=0
:Memory.text=Misja 2: Sabota¿
:Memory.m1=0
:Memory.m2=0
:Memory.m3=0
:Memory.m4=0
>Echo{Memory.text}
>Destroy{Memory.text}

[eventVehicleDestroy]
/Specyfikacja misji - program nietypowego zadania/
>ifeq{Memory.m1}=0
>ifeq{Vehicle[1].destroyed}=1
:Memory.m1=1
:Memory.text=Samochód 1 zniszczony
>Echo{Memory.text}
>Destroy{Memory.text}
>endif
>endif
>ifeq{Memory.m2}=0
>ifeq{Vehicle[2].destroyed}=1
:Memory.m2=1
:Memory.text=Samochód 2 zniszczony
>Echo{Memory.text}
>Destroy{Memory.text}
>endif
>endif
>ifeq{Memory.m3}=0
>ifeq{Vehicle[3].destroyed}=1
:Memory.m3=1
:Memory.text=Samochód 3 zniszczony
>Echo{Memory.text}
>Destroy{Memory.text}
>endif
>endif
>ifeq{Memory.m4}=0
>ifeq{Vehicle[4].destroyed}=1
:Memory.m4=1
:Memory.text=Samochód 4 zniszczony
>Echo{Memory.text}
>Destroy{Memory.text}
>endif
>endif
