Zitat
scn FahrstuhlScript
short durchlauf
short position
float hilfszahl
float SP
Begin onactivate
set SP to getstartingpos, z
if (position == 0)
if (durchlauf == 0)
set hilfszahl to SP +1
else
set hilfszahl to (hilfszahl+1)
endif
setpos z, hilfszahl
if (hilfszahl >= 10000)
set position to 1
endif
elseif (position == 1)
set hilfszahl to (hilfszahl -1)
setpos z, hilfszahl
if (hilfszahl <= SP)
set position to 0
endif
endif
set durchlauf to 1
if (hilfszahl > SP && hilfszahl < 10000)
activate player 1
endif
End
...