Klesh Posted November 30, 2010 Posted November 30, 2010 what function can replace that event, because i want when the wins gets 1200 cash, but onPlayerDestructionDerbyWin no works. Any idea??? Thnx For HELP PLZ
Aibo Posted November 30, 2010 Posted November 30, 2010 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
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