Jump to content

Help


CheiN

Recommended Posts

    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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...