• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] bj_isSinglePlayer

Status
Not open for further replies.

NEL

NEL

Level 6
Joined
Mar 6, 2017
Messages
113
How does bj_isSinglePlayer works?

  • Map Protection
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: if bj_isSinglePlayer then
      • Game - Display to (All players) the text: Singleplayer Mode?
      • Custom script: else
      • Game - Display to (All players) the text: Lan Mode?
      • Custom script: endif
 

NEL

NEL

Level 6
Joined
Mar 6, 2017
Messages
113
would it matter for you if player plays solo in LAN?
I want to kick him once he played Singleplayer Mode. That's why i'm trying to use bj_isSinglePlayer, but it didn't work.

ReloadGameCachesFromDisk() will return true if the game is played offline, false if LAN or over Battle.net.
JASS:
function InitTrig_Map_Protection takes nothing returns nothing
    if ReloadGameCachesFromDisk() then
        call EndGame( true )
    endif
endfunction

Good, Thanks.

+rep
 
Status
Not open for further replies.
Top