Posts: 342
Threads: 64
Joined: Aug 2013
Reputation:
0
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?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Partially you can use Map Andreas to detect potential collisions ahead of an object which is not perfect.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
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.