Jump to content

Car respawn


Recommended Posts

Posted

I have made a script for car spawn points all over LS the only problem is I can't seem to make a respawner. I need the cars to respawn 10 secs after they explode. Anybody got a basic script for that.

Posted

try this:

function explodeDestroy () 
    local vehicles = getElementsByType( "vehicle" ) 
    for k,v in ipairs( vehicles ) do 
        if ( getElementHealth( v ) < 25 ) then 
            setTimer( destroyElement, 10000, 1, v ) 
        end 
    end 
end 
addEventHandler( "onVehicleExplode", getRootElement (), explodeDestroy ) 

  • 4 weeks later...
  • 2 weeks later...
Posted

Because that was a question a guy asked... If you have some knowledge about scripting in Lua than you can modify it easily. Every single post of yours doesn't show any skills you have but good luck...

BTW, STOP POSTING SHIT REPLIES IF YOU CAN'T EVEN HELP YOURSELF!

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...