P3D-Legacy/P3D/Content/Data/Scripts/speedboatscene.dat

45 lines
2.0 KiB
Plaintext

version=2
#This is the script that controls the animation of the speed boat in the transition scene:
@player.warp(speedboatscene.dat,0,-2,0)
@level.update
@music.stop
@level.wait(15)
@entity.warp(0,0,-0.5,0)
@camera.activatethirdperson
@camera.setfocus(entity,0)
@camera.reset
@camera.setposition(0,7.1,9.3)
@camera.setpitch(-0.7)
@camera.update
#This controls the current fading state of the screen:
@storage.set(int,c_fade,255)
@level.wait(10)
@sound.play(magnettrain)
:while:<entity.positionx(0)><150
@entity.addtoposition(0,0.4,0,0)
@camera.setyaw(<camera.yaw>+0.015)
@level.update
:if:<entity.positionx(0)>>115
@storage.update(int,c_fade,+,3)
@screen.setfade(<storage.get(int,c_fade)>)
:else
:if:<storage.get(int,c_fade)>>0
@storage.update(int,c_fade,-,3)
@screen.setfade(<storage.get(int,c_fade)>)
:endif
:endif
:endwhile
@level.wait(20)
@screen.setfade(255)
@camera.setfocustype(player)
@camera.reset
@camera.setpitch(0)
:end