29.08.2013, 09:18
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.
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.