0 Members and 1 Guest are viewing this topic.
uhm...Code: jassfunction IsSinglePlayer takes nothing returns boolean return ReloadGameCachesFromDisk()endfunction the above is the standard way to do this check...
Uhhm, can you explain the:" This function cannot be run at map initialization, otherwise it won't offer a right answer. It relies in "greedisgood" cheat to do the verification. "What does it mean? Does it mean you have to put cheat first before the library run?
Code: jasslibrary IsSinglePlayer globals private boolean sp = ReloadGameCachesFromDisk() endglobals function IsSinglePlayer takes nothing returns boolean return sp endfunction endlibraryAlso, it should be IsSinglePlayer, because FunctionNamesAreWrittenLikeThis ;P
Im quite sure that replays will screw this.
http://www.wc3c.net/showthread.php?t=104921&page=3That has a bit of a discussion about it. That one is about it being online though. So it really depends on what definition of single player you're after. So you "might" have to revert to the cheat method, it depends on what you're trying to do. You should probably test it anyway just in case.
Started by PitzerMike
Started by Purgeandfire
Started by Bribe
Started by moyack
Started by Magtheridon96