A little question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little question (
/showthread.php?tid=70017)
A little question -
SpiderPork - 22.03.2009
Just one question; how can I detect when an object reaches/hits floor?
Re: A little question -
Kinetic - 22.03.2009
Figure out the Z coordinate of the point where it will hit the ground and make the object not go below that.
Re: A little question -
SpiderPork - 22.03.2009
The object won't be moving from one point to ground, but from a random point to ground. So there will be no specific Z coord bellow where it shouldn't go, but random Z coords.
Re: A little question -
Kinetic - 22.03.2009
Theres no way to do that. If there is, I dont know about it.
Re: A little question -
SpiderPork - 22.03.2009
I guess there is. Look at the bombing filterscripts. I tried copying some parts from it but I don't know which part

.
Re: A little question -
Kinetic - 22.03.2009
What filterscript are you looking at? Can you post the link?
Re: A little question -
SpiderPork - 22.03.2009
At this one:
http://forum.sa-mp.com/index.php?topic=66773.0
Re: A little question -
Kinetic - 22.03.2009
Quote:
Originally Posted by fromthebombing
For this i created a MySQL table containing the Z-coordinate of the highest ground for every x-y pair in 5x5
|
Thats what he did. He got the z location of every 5 coords. Thats a lot and I suggest trying to come up with a system that uses his MySQL table of coords.
Re: A little question -
SpiderPork - 22.03.2009
Still too complicated for me. If you could be more specific that'd be realy helpful.
Re: A little question -
MenaceX^ - 22.03.2009
I didn't get it, you're trying to set an object on the floor?