GSC reference › Built-in
SessionModeIsMultiplayerGame()
Built-in (engine)
Server
Returns true/false if the current session mode is a multiplayer game
Signature
SessionModeIsMultiplayerGame()
Example (from Treyarch's docs)
if ( SessionModeIsMultiplayerGame() )
Real uses in BO3's scripts
Called 28 times in the decompiled scripts. A few, zombies first:
- scripts/shared/_oob.csc, line 34
if(sessionmodeismultiplayergame()) - scripts/shared/_oob.gsc, line 36
if(sessionmodeismultiplayergame()) - scripts/shared/abilities/_ability_player.gsc, line 676
if(sessionmodeismultiplayergame()) - scripts/shared/abilities/gadgets/_gadget_roulette.gsc, line 55
if(sessionmodeismultiplayergame()) - scripts/shared/abilities/gadgets/_gadget_thief.gsc, line 169
if(sessionmodeismultiplayergame())
Related built-ins
- SessionModeIsCampaignZombiesGame()Returns true/false if the current session mode is a campaign game and the campaign mode is set to zombies.
- SessionModeIsZombiesGame()Returns true/false if the current session mode is a zombies game
- SessionModeIsOnlineGame()Returns true/false if the current session mode is onlinegame
- SessionModeIsCampaignGame()Returns true/false if the current session mode is a campaign game
- GameModeIsMode()Returns true/false if the current game mode is the given mode
- ForceGameModeMappings()Forces the users controller mappings for a specific game mode (or resets to user defaults)
- Objective_GetGamemodeFlags()Gets the gamemode flags for the objective.
- Objective_SetGamemodeFlags()Sets the gamemode flags for the objective.
- SessionModeIsCampaignDeadOpsGame()Returns true/false if the current session mode is DeadOps game
- SessionModeIsPrivateOnlineGame()Returns true/false if the current session mode is a private onlinegame
- ServerObjective_GetObjectiveGameModeFlags()Returns the origin of the objective
- SetModel()Set the model for the entity
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).