top of page

Cinematics

In a script file, call "sequence start [sequenceName]"


It will search for a .seq file in the 'Sequences' folder, eg: Sequences/sequenceName.seq


seq files have the following syntax:


action camera Animate the camera.

action entity [x] [y] [z] - Animate an entity at the specified x,y,z coordinates.

start [x] [y] [z] - Position to start animation from.

end [x] [y] [z] - Position to end animation on.

rotationstart [x] [y] [z] - The rotation at the start of the sequence.

rotationend [x] [y] [z] - The rotation at the end of the sequence.

statestart [state name] - State to set the entity to when the sequence starts.

stateend [state name] - State to set the entity to after the sequence ends.

time [seconds] - How long the animation will run.

parallel

Camera animation example:


action camera


start 7 6 0.5


end 7 15 0.5


rotationstart 0 0 0


rotationend 0 360 0


time 2


This will animate the camera for two seconds from 7,6,0.5 to 7,15,0.5, rotating 360 degrees in the y-axis.


Save it as Sequences/demo.seq, and call it from a script with: "sequence start demo"

bottom of page