Jump to: navigation, search

Tutorial Scripting Notes

Scripting Notes

This page contains a list of important notes that you should consider when developing scripts for Cubiverse

Editing Worlds

When you enable the world editor the server will place the world into edit mode, this mode only STALLS scripts.

The contents of any run-time information (like Javascript variables and objects) are kept (i.e. they are not erased, or reset like when a world is first started). The main reason for the "pause" is so you correctly think about what happens when new players join the world, in the middle of what might be your game state.

Order of things

You should assume there is no order in how scripts are executed during start-up. Cubiverse only guarantees any "Generic Script Entity" scripts are executed before anything else (but not the order of how those entities execute the scripts)