Report the engine's current mode. Returns "edit", where scripts and physics are paused for authoring, or "play", where they run. Use it to branch on the current state before flipping modes.
"edit"
"play"