edited April 2014 in ORK Scripting
Hi Gil,

is there a way to load a saved scene using script?

I know to save a scene, we can use:
ORK.Game.StoreScene();

How can I load that same stored scene (with all the player positions and rotations)?

  • edited April 2014
    The StoreScene() function only stores the player's current scene, position and rotation (same as the event step). It doesn't save anything else ...
    To get the stored scene, position and rotation, call ORK.Game.GetStoredScene(), which returns a SceneTarget class that let's you spawn the player at it's position (but you'll first need to load the scene yourself). The SceneChanger also uses SceneTargets to load/spawn the player, so you can also use that to load and spawn the player.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks, Gil. Will try it.
Sign In or Register to comment.