Find the nearest Ground Z Position.
#1

Hi guys, first, sorry for my bad english.

10 months ago, i tried to make a soccer system, with a stadium etc. It was really funny, and I had no problem. But few times ago, i had an idea: be able to play soccer everywhere around San Fierro.
But the Ground Z position was a problem. I didn't know what was the Z ground position for each X and Y pos. So i finally use the MapAndreas plugin (later, the one by RyDeR' because it takes less memory.) It was working good, but i finally found a problem that i never thought about: MapAndreas give us the higgest position of the ground.

So now i have some questions: how to find the nearest ground position for a given mark (X and Y positions) ?

Do you have some ideas or solutions ?
I have long thought that I needed to save all the Z position below each bridge around San Fierro, and make a function that check if the ball the the player shooted need to go to the lowest or the higgest Z pos.

Thank you for giving me a little of your time by looking for a solution with me.

And one more time, sorry for my bad english.
Reply


Messages In This Thread
Find the nearest Ground Z Position. - by Varkoll_ - 29.08.2013, 09:18
Re: Find the nearest Ground Z Position. - by Dragonsaurus - 29.08.2013, 09:40
Re: Find the nearest Ground Z Position. - by Varkoll_ - 29.08.2013, 09:45
Re: Find the nearest Ground Z Position. - by Konstantinos - 29.08.2013, 10:39
Re: Find the nearest Ground Z Position. - by Varkoll_ - 29.08.2013, 12:15
Re: Find the nearest Ground Z Position. - by Varkoll_ - 29.08.2013, 15:50
Re: Find the nearest Ground Z Position. - by WrathOfGenesis - 29.08.2013, 16:41
Re: Find the nearest Ground Z Position. - by Pottus - 29.08.2013, 17:08
Re: Find the nearest Ground Z Position. - by Varkoll_ - 29.08.2013, 19:36
Re: Find the nearest Ground Z Position. - by Mauzen - 29.08.2013, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)