H5N1 Posted October 23, 2012 Share Posted October 23, 2012 Hello, I have problem that I can't solve. My script creates about 100 objects near player and I need to check 3 states of each object. 1st state - Object is streamed in and visible (loaded) 2nd state - Object is streamed in (in range) but is not visible and is still loading 3rd state - Object is too far away to load/stream But I have problem to calculate second state, because some objects stream in about 100 units, and other in about 400. Can anyone help me how to check draw distance for each model? Link to comment
myonlake Posted October 24, 2012 Share Posted October 24, 2012 Maybe get the distance between the objects and the player and add a limit for each state you want. First state can be less than 50 and second can be less than 60 and third can be greater than 60. Link to comment
H5N1 Posted October 24, 2012 Author Share Posted October 24, 2012 Oh... I check state 2 by calculating distance 3D between object and player. But you dont understand, for every model distance when object is streamed in, is different! I need to check this value somehow. Link to comment
MTA Team ccw Posted October 24, 2012 MTA Team Share Posted October 24, 2012 https://wiki.multitheftauto.com/wiki/Eng ... ODDistance You'll need to use the latest nightly though Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now