Jump to content

How to know whether the world objects have been loaded


John Smith

Recommended Posts

Posted

Hello there.

When you e.g setCameraMatrix to somewhere like thousands of meters from your original distance, the game takes up to 2-5 seconds to load all the objects in your streamed in radius.

So I was wondering whether it's possible to determine when that loading has been finished, or to somehow make it load faster?

Oh and https://wiki.multitheftauto.com/wiki/IsElementWaitingForGroundToLoad doesn't work for this case, tried it anyway but as I expected it didn't work as it wasn't intended for that.

Thanks for reading.

Posted

It's really irritating when i switch to spectating and objects around the target haven't loaded. Would love to make them load faster as well. 

  • Like 1
Posted

There's nothing you can do. What you can do is add a small timer to when the player's screen will be visible (you can use fadeCamera) and freeze the player temporarily so they don't fall through the ground.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...