Is it possible to use Lua to check for the current gamemode?

Status
Not open for further replies.

pikafan8

Member
I need to make my character slow down and not scale when in the Multiplayer modes, because some of my testers are saying it's a bit unfair.
 
Use the global variable gametype to check. It's an integer that can be compared to the following values:


GT_COOP = 0, // also used in single player
GT_COMPETITION, // Classic "Race"
GT_RACE,


GT_MATCH,
GT_TEAMMATCH,


GT_TAG,
GT_HIDEANDSEEK,


GT_CTF, // capture the flag
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top