Jump to content

Race Gamemode functioning


Recommended Posts

Hey guys, as far as i see, whenever a map ends, the race gamemode does:

gotoState('EveryoneFinished')

RaceMode.endMap()

eg:

  
function raceTimeout() 
    if stateAllowsTimesUp() then 
        gotoState('TimesUp') 
        for i,player in pairs(g_Players) do 
            if not isPlayerFinished(player) then 
                triggerClientEvent("onServerWantShowCenterMessage",resourceRoot,false,"Time\'s up!") 
            end 
        end 
        clientCall(g_Root, 'raceTimeout') 
        TimerManager.destroyTimersFor("raceend") 
        RaceMode.endMap() 
    end 
end 

But i cannot find where the RaceMode.endMap function is defined inside the race, could someone help me?

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