public function player.setGold(int val)
public function player.addGold(int val)
public function player.setLumber(int val)
public function player.addLumber(int val)
public function player.addState(playerstate state, int val)
public function player.clearSelection()
Clears the selection for the player, deselecting all widgets.
public function player.isSelectionEnabled() returns bool
Get if Selection is enabled for local player. Returns always false for non-local player.
public function player.isSelectionCircleEnabled() returns bool
Get if Selection Circle is enabled for local player. Returns always false for non-local player.
public function player.setSelectionsEnabled(bool enableSelection, bool enableSelectionCircle)
Enable or disable player selections.
public function player.disableUserControl()
Disable UI control for the player
public function player.enableUserControl()
Enable UI control for the player
public function player.getController() returns mapcontrol
public function player.getCurrentSupply() returns int
public function player.getGold() returns int
public function player.getId() returns int
public function player.getLumber() returns int
public function player.getMaxSupply() returns int
public function player.getName() returns string
public function player.getName(boolean removeHash) returns string
Reforged names have a number attached after a hash tag, like Bob#1234
public function player.getSlotState() returns playerslotstate
public function player.getStartLocation() returns vec2
public function player.getState(playerstate state) returns int
public function player.isAllyOf(player p) returns boolean
public function player.isEnemyOf(player p) returns boolean
public function player.panCamToTimed(unit u, real time)
public function player.select(unit u)
public function player.selectSingle(unit u)
public function player.setAbilityAvailable(int abilityId, boolean avail)
public function player.setName(string name)
public function player.setState(playerstate state, int val)
public function player.subGold(int val)
public function player.subState(playerstate state, int val)
public function player.setUserControl(boolean enable)
Enables / disables user UI control for the player
public function player.unselect(unit u)
public function player.isIngame() returns boolean
public function player.decTechResearched(int techId, int levels)
public function player.forceStartLocation(int index)
public function player.getPlayerAlliance(player otherPlayer, alliancetype whichAllianceSetting) returns boolean
public function player.setPlayerAlliance(player otherPlayer, alliancetype whichAllianceSetting, boolean value)
public function player.setTaxRate(player otherPlayer, playerstate whichResource, integer rate)
public function player.setRacePreference(racepreference whichRacePreference)
public function player.setRaceSelectable(boolean value)
public function player.getTeam() returns int
public function player.isSelectable() returns bool
public function player.getTaxRate(player otherPlayer, playerstate whichResource) returns int
public function player.isRacePrefSet(racepreference preference) returns bool
public function player.getScreenSize() returns vec2
Get width and height of current Warcraft 3 client window. Returns vec2(0,0) for non-local player.
public function player.isScreenActive() returns bool
Check if client window is active. Will return false always for non-local player.
public function player.getLocale() returns string
Return language locale for local player. Returns null for non-local player.
public function player.isTargetIndicatorEnabled() returns bool
Return if Target Indicator is enabled for local player. Returns false for non-local player.
public function player.setTargetIndicator(bool enableTargetIndicator)
Set if Target Indicator is enabled for local player.
public function player.setCursorEnabled(bool enableCursor)
Enable or disable mouse cursor..
public function player.setPosCursor(vec2 pos)
Set cursor position on screen. Uses int values internally.
public function player.getCursorFocus() returns unit
Get unit focused by mouse cursor.
public function player.setMinimapTerrainTex(string texFile) returns bool
public function player.sendSyncData(string prefix, string data) returns bool
public function player.showChatMessage(int recipient, string message)
public function player.setHeroMaxAllowed(int amount)
Sets the maximum allowed hero amount for a player
public function player.hasVisibility(unit target) returns bool
public function player.hasVisibility(vec2 pos) returns bool
public constant localPlayer = GetLocalPlayer()