I created rockets (type 20) using the createProjectile function. But the force in this function only affects throwable objects. Setting velocity at launch or during flight is also useless. Perhaps it makes sense to set the velocity forcibly when calling the function (the last 3 arguments, before the last), but in this case, you need to somehow calculate the velocity for x, y and z. If my version is the best, then you can tell me how to calculate the velocity relative to 2 points. I suppose that I need to get the direction (for example, up: 0, 0, 1, left: 1, 0, 0, etc.) and this direction will be the desired velocity, but I tried this option, although it did not work:
local x1,y1,z1 = 1, 2, 3 -- for example
local x2,y2,z3 = getElementPosition(object)
local directionX, directionY, directionZ = x1 - x2, y1 - y2, z1 - z2
createProjectile(localPlayer, 20, x1, y1, z1, 1, object, 0,0,0, directionX, directionY, directionZ)
When using this method, the rocket simply flew somewhere (with the inversion of direction, roughly speaking, the same thing)
There is an option to simply launch a regular missile (NOT homing) at the player's position (or a little further), but such a missile is incredibly easy to dodge by gaining the height of the fighter. POSSIBLY, I could implement this if I could change the flight path (for example, a callback when flying each unit up, with the ability to change the trajectory, but if I'm not mistaken, such a callback cannot be done)
Let me remind you, I just need to increase the speed of the rocket