[HELP] LODs
#1

So, the moderator ****** gave me a warning and deleted the topic. This is why I am about to ask exactly the same in other words:

I've got a huge scripting problem. There's an include, called RemoveBuilding.inc. It has one cool feature - restores removed objects. When you remove an object, usually you remove an object itself and its LOD. When you restore an object, you restore the LOD also, but now they both are visible in very close distances and both not visible from far away. What I want is to make sure, that the detailed object is visible in short distances and the LOD - in long distances. The problem is, that SA:MP doesn't know, which object is LOD, these two are not connected by any means.
How to solve this scripting problem? Anyone know where to get the array of objects and their LODs, connected by the same array ID? Any other suggestions?
Thanks. And please, ******, if you are not going to help anyway, do nothing. I'll give you +REP for not visiting this topic
Reply
#2

Stick the SAMP object in a streamer and stream it in within a certain distance while maxing the stream distance on the LOD object.

Array of objects that have a corresponding LOD object

http://pastebin.com/YkksRdw0
Reply
#3

Thank you, man! You've saved my day
Reply
#4

Anytime.
Reply
#5

Which function should I use to make sure an object is not streamed when closer than 300.0 and streamed until 1000.0 or so?
Reply


Forum Jump:


Users browsing this thread: