Other great resources: Official JS API docs, Scripting Forum
Use this global to determine if your script is running in an online multiplayer game, with multiple human players.
true
false
You can determine whether players are human or AI using the .isAI property in their associated playerData[] Player object.
if (isMultiplayer) { // multiple human players on the map! }
Requires:
Jump to: