WolfPire Posted March 28, 2012 Share Posted March 28, 2012 Hi guys, it's me ELMO... No... WolfPire x'D I got a lil' problem with this script i'm about to call "bad mother f*cker". The problem is that, everything is fine, but when i shoot my missiles by pressing "C". The missiles don't get rotation and besides. When i turn 180° degrees with my plane, it just becomes almost 1 missiles (it's actually the 4 missiles in 1 place) i found this really weird, if you still don't get this just tell me. Client bindKey("c", "down", function() if not MT then MT = setTimer(fire, 1000, 1) end end ) function fire() v = getPedOccupiedVehicle( localPlayer ) x, y, z = getElementPosition( v ) rx, ry, rz = getElementRotation( v ) velX, velY, velZ = getElementVelocity ( v ) if getElementModel( v ) == 476 then m1 = createProjectile( localPlayer, 19, x + 8, y + 3, z-2, 3.0, nil, rx, ry, rz, velX*3.0, velY*3.0, velZ*3.0, 3790) m2 = createProjectile( localPlayer, 19, x + 4, y + 3, z - 2.5, 3.0, nil, rx, ry, rz, velX*3.0, velY*3.0, velZ*3.0, 3790) m3 = createProjectile( localPlayer, 19, x + -4, y + 3, z - 2.5, 3.0, nil, rx, ry, rz, velX*3.0, velY*3.0, velZ*3.0, 3790) m4 = createProjectile( localPlayer, 19, x + -8, y + 3, z - 2.5, 3.0, nil, rx, ry, rz, velX*3.0, velY*3.0, velZ*3.0, 3790) MT = nil end end Thanks in advance c: Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now