Jump to content

setVehicleIdleRespawnDelay bug


AMARANT

Recommended Posts

Posted

Why setVehicleIdleRespawnDelay function doesn't work on player death or quit event? Check this simple code below:

theVehicle = createVehicle(547,100,300,15,0,0,90) 
setVehicleRespawnPosition(theVehicle,100,300,15,0,0,90) 
  
function RespawnVehicle() 
toggleVehicleRespawn(theVehicle,true) 
setVehicleIdleRespawnDelay(theVehicle,10000) 
end 
addEventHandler("onPlayerWasted",getRootElement(),RespawnVehicle) 
addEventHandler("onPlayerQuit",getRootElement(),RespawnVehicle) 

Note: On the exit vehicle event works just fine.

Posted

I think it's generally easier to manually handle this, but you might want to see if it's been reported on Mantis, and report it if it's not.

Posted
I think it's generally easier to manually handle this, but you might want to see if it's been reported on Mantis, and report it if it's not.

Yeah probably I'll report it right now :| But what do you recommend me to make it spawn on quit event?

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