FuriouZ Posted April 26, 2014 Share Posted April 26, 2014 Hello! Is it possible to get all world lamp posts and attach object on it ? For example let's take lamp post with id 1232 How i can get all world lamps with this id and attach marker on it ? I would like to do something like this: http://www.imagebam.com/image/a79949319938389 Thanks! Link to comment
myonlake Posted April 26, 2014 Share Posted April 26, 2014 (edited) Unfortunately I doubt that is possible at the moment. You could of course always do the worst possible thing and go through all possible pixel targets on the screen and perform processLineOfSight for those, but that's the worst possible thing to do, so no. The way you could do something like that in MTA is to process all the possible light elements with shaders - if the intensity of this pixel is higher than something, then perform something cool for that. However, lights are not rendered that far so it would become a problem for shaders to know all that. So, I doubt you can (unless you get a team of people to create markers for each lamp post in San Andreas, that's also a way...) I doubt it would be a major hyper extreme hard thing for the MTA team to develop a function to get all world objects of a specific model, so instead of going through all that trouble making markers for each lamp post I'd just wait until they add support for that. Edited April 26, 2014 by Guest Link to comment
FuriouZ Posted April 26, 2014 Author Share Posted April 26, 2014 Unfortunately I doubt that is possible at the moment. You could of course always do the worst possible thing and go through all possible pixel targets on the screen and perform processLineOfSight for those, but that's the worst possible thing to do, so no. The way you could do something like that in MTA is to process all the possible light elements with shaders - if the intensity of this pixel is higher than something, then perform something cool for that. However, lights are not rendered that far so it would become a problem for shaders to know all that. So, I doubt you can (unless you get a team of people to create markers for each lamp post in San Andreas, that's also a way...) Okay, thanks 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