Scripting: Difference between revisions

1,016 bytes added ,  15 May 2023
Added information about cutscene command.
(Slight format changes. Reworked section to say "units" rather than "meters" and explain the difference between objects.)
(Added information about cutscene command.)
Line 296: Line 296:


This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.
==Cutscene==
<code>cm</code> or <code>camera</code> lets you control cutscenes, cameras, and have a few cinematic controls.
{{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.
Cutscene mode can be canceled by holding escape.
{{HeaderNoTOC|Focus camera on object}}
<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.
{{HeaderNoTOC|Fade out}}
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.
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.
62

edits