A little question
#1

Just one question; how can I detect when an object reaches/hits floor?
Reply
#2

Figure out the Z coordinate of the point where it will hit the ground and make the object not go below that.
Reply
#3

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.
Reply
#4

Theres no way to do that. If there is, I dont know about it.
Reply
#5

I guess there is. Look at the bombing filterscripts. I tried copying some parts from it but I don't know which part .
Reply
#6

What filterscript are you looking at? Can you post the link?
Reply
#7

At this one: http://forum.sa-mp.com/index.php?topic=66773.0
Reply
#8

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.
Reply
#9

Still too complicated for me. If you could be more specific that'd be realy helpful.
Reply
#10

I didn't get it, you're trying to set an object on the floor?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)