Hi guys .
I want to ask a question that the rockets are not firing on a fixed position
when ever i change the vehicle's direction ,then the rockets firing source position also change from one headlight to another
this is the script
i also tried use setelement rotation but it didnt worked If someone can help me i will be thank full to him
i created two different different rockets binded by mouse clicks
function carshoot()
if bindTrigger == 1 then
if not isPedDead(cLP) then
bindTrigger = 0
local x,y,z = getElementPosition(theVehicle)
local rX,rY,rZ = getElementRotation(theVehicle)
local x = x+1
local y = y+1
createProjectile(theVehicle, 19, x-2, y, z, 1.0, nil)
setTimer(allowShoots,4000, 1)
end
end
end
function carshoot2()
if bindTrigger2 == 1 then
if not isPedDead(cLP) then
bindTrigger2 = 0
local x,y,z = getElementPosition(theVehicle)
local rX,rY,rZ = getElementRotation(theVehicle)
local x = x+1
local y = y+1
createProjectile(theVehicle, 19, x, y, z, 1.0, nil)
setTimer(allowShoots,4000, 1)
end
end
end