Jump to content

[Solved] Need some help with GameEvents.onLevelWasLoaded


linuxgurugamer

Recommended Posts

I'm reworking the old HoloDeck to add more functionality to it, and fix some bugs.

I'm currently working on merging code from HyperEdit with this, so that a ship simulation can be started in orbit around another planet

I'm running into a problem with the GameEvents.onLevelWasLoaded.

First, I have the hyperedit code working when I call it from a button in the simulation mode.  I'm now trying to get it to work as soon as the level is loaded.

Apparently, when this callback is triggered (going from the editor to the flight scene), the scene isn't fully stabilized yet, and calling the orbit code doesn't work.  If I add a 5-10 second pause between the time the level is loaded and the orbit code then works.

So, I think I need the answers to the following questions:

  1. How can I tell when the scene is stabilized?
  2. Is there any way I can force the launch to be in orbit?  or does it have to start at a launch facility?
  3. Any other question you think I should have asked but didnt?

Thanks in advance

 

LGG

Edited by linuxgurugamer
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...