Jump to content

onPlayerDestructionDerbyWin


Klesh

Recommended Posts

as i recall, race resource doesn't have event for destruction derby winner (though it should have, imo)

you can add it yourself though: open race/modes/destructionderby.lua, around line 67:

  if #activePlayers == 1 then 
    self.rankingBoard:add(activePlayers[1], timePassed) 
    showMessage(getPlayerName(activePlayers[1]) .. ' is the final survivor!', 0, 255, 0) 
    triggerEvent("onPlayerDestructionDerbyWin", getRootElement(), activePlayers[1]) -- add this line to trigger event 
  end 

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