Scripting: Difference between revisions

Line 314: Line 314:


{{HeaderNoTOC|Cutscene mode}}
{{HeaderNoTOC|Cutscene mode}}
Simply do <code>cm cs</code> and you will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides your hud.
<code>cm cs</code> will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides the interface.


Cutscene mode can be canceled by holding escape.
<code>cm</code> will disable cutscene mode and resets the camera (ie. places it back at the player character)


{{HeaderNoTOC|Focus camera on object}}
{{HeaderNoTOC|Focus}}
<code>cm focus sera_hammock</code> for example will allow you to focus on an object with the camera. The camera will rotate to look at the object for your cutscenes or simply convenience.
<code>cm focus</code> returns camera focus on the player.


{{HeaderNoTOC|Fade out}}
<code>cm focus sera_hammock</code> for example will allow you to focus on an object with the camera. The camera will rotate to look at the object.
Fading out allows you to make the current camera view fade out.


Simply do <code>cm fade</code> to do a short fade. <code>cm fade 0</code> will permanently fade to black.
{{HeaderNoTOC|Set position}}
<code>cm set (coordinates)</code> (for example, <code>cm set 60 21.51 2.90 -13.37 -0.29 2.43 0.00</code>) sets the camera position and aim.


To have a fade out that happens slowly for you can do <code>cm fade 5</code> to slowly fade out and after 5 seconds being completed faded to black. You can replace the number 5 with any length of time you want for this fade out.
This detaches from the focused item and serves as a "static" camera placement. You can get the camera coordinates by right clicking the scripting window and clicking "Paste camera".
 
{{HeaderNoTOC|Fading}}
<code>cm fade</code> creates a short black fade.
 
<code>cm fade 0</code> will make the screen black instantly.
 
<code>cm fade 2.5</code> will fade the screen from screen to black, over the course of 2.5 seconds.
 
<code>cm fade -1.5</code> will fade the screen from black to screen, over the course of 1.5 seconds.
 
Remember to put <code>wait</code> to wait for the fade. (eg. <code>wait 1.0</code> to wait one second after doing <code>cm fade 1.0</code>)
 
{{HeaderNoTOC|Dissolving}}
<code>cm dissolve</code> creates a short dissolve effect (a snapshot of the screen is faded out to a new shot).