Is it possible to..
#1

Is there a way to launch rockets similar to the rocket launcher and the rhino, or is there a way to detect the distance to the walls/objects in my way and do like CreateExplosion?
Reply
#2

Partially you can use Map Andreas to detect potential collisions ahead of an object which is not perfect.
Reply
#3

Alright, thanks.
Reply
#4

What I would do is figure out the range of your rocket say for instance it is 100 meters you will need to take note of the origin Z-Height then keep checking 1.0 meter ahead of that position. If you find a Z-Height greater than your origin height there is a collision. Now that is for a rocket that moves perfectly straight along the XY axis without change in Z-Height so you'll need to adjust your calculations for this.
Reply
#5

Oh wow, it's just that I am pretty bad in math and what I wanted to try was just to make this
FS of mine able to shoot canons -> https://sampforum.blast.hk/showthread.php?tid=468166
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)