Jump to content

Last survivor finish map


LightifyLife

Recommended Posts

Hi,

What do I need to edit in the destruction_derby.lua to let the last survivor finish the map?

I'm trying to remove 'race ran' from the scoreboard but it is not working.

exports.scoreboard:removeScoreboardColumn('race ran') 

I did successfully remove 'state' from the scoreboard with the same code.

What am I doing wrong?

Edited by Guest
Link to comment
You are sure that it's called that way? It's easier to delete the part of the code that creates that column.

I don't know where the piece of code is located.

Do you know it?

Also, do you perhaps know what I need to edit in the destruction_derby.lua to let the last survivor finish the map?

Link to comment

in destructionderby.lua search for those 2 functions (I assume you want this for a DM server) :

DestructionDerby:onPlayerQuit(player)

DestructionDerby:onPlayerWasted(player)

Replace the following code in every single one:

Default:

 if getActivePlayerCount() <= 1 then  

Change with :

if getActivePlayerCount() <= 0 then  

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