CheiN Posted August 9, 2012 Share Posted August 9, 2012 function colored( ) local x, y, z = getElementPosition ( localPlayer ) local projectile = createProjectile ( localPlayer, 19, x, y, z, 200 ) local mark = createMarker ( x, y, z, "corona", 2.2, 255, 0, 123, 120 ) if ( projectile and mark ) then attachElements ( mark, projectile, 19, 0, 0, 0 ) setTimer ( colored, 2500, 1 ) end end bindKey ( "l", "down", colored ) this is the thing. i want thaat the rocket shoot in front of my vehicle(for race is this) but the rocket shoot inside of my car then, i want shoot the misile in front of my vehicle and when the misile dissapear (explode) destroy the marker PLZ HELP ^^ Link to comment
Tete omar Posted August 9, 2012 Share Posted August 9, 2012 try this function colored( ) local x, y, z = getElementPosition ( localPlayer ) local projectile = createProjectile ( localPlayer, 19, x, y, z, 200 ) local mark = createMarker ( x, y, z, "corona", 2.2, 255, 0, 123, 120 ) if ( projectile and mark ) then attachElements ( mark, projectile, 19, 0, 0, 5 ) setTimer ( colored, 2500, 1 ) end end bindKey ( "l", "down", colored ) 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