CDOTA_PlayerResource extends CBaseEntity
s
c
#
AddAegisPickup(playerIdPlayerID): nil
s
c
#
AddClaimedFarm(playerIdPlayerID, farmValuefloat, earnedValuebool): nil
s
c
#
AddGoldSpentOnSupport(playerIdPlayerID, costint): nil
s
c
#
AddRunePickup(playerIdPlayerID): nil
s
c
#
AreUnitsSharedWithPlayerID(unitOwnerPlayerIdPlayerID, otherPlayerIdPlayerID): bool
s
c
#
CanRepick(playerIdPlayerID): bool
s
c
#
ClearKillsMatrix(playerIdPlayerID): nil
s
c
#
ClearLastHitMultikill(playerIdPlayerID): nil
s
c
#
ClearLastHitStreak(playerIdPlayerID): nil
s
c
#
ClearRawPlayerDamageMatrix(playerIdPlayerID): nil
s
c
#
ClearStreak(playerIdPlayerID): nil
s
c
#
GetAegisPickups(playerIdPlayerID): int
s
c
#
GetAssists(playerIdPlayerID): int
s
c
#
GetBroadcasterChannel(playerIdPlayerID): uint
s
c
#
GetBroadcasterChannelSlot(playerIdPlayerID): uint
s
c
#
GetClaimedDenies(playerIdPlayerID): int
s
c
#
GetClaimedFarm(playerIdPlayerID, onlyEarnedbool): float
s
c
#
GetClaimedMisses(playerIdPlayerID): int
s
c
#
GetConnectionState(playerIdPlayerID): DOTAConnectionState_t
s
c
#
GetCreepDamageTaken(playerIdPlayerID, totalbool): int
s
c
#
GetCustomBuybackCooldown(playerIdPlayerID): float
s
c
#
GetCustomBuybackCost(playerIdPlayerID): int
s
c
#
GetCustomTeamAssignment(playerIdPlayerID): int
s
c
#

Get the current custom team assignment for this player.
GetDamageDoneToHero(playerIdPlayerID, victimIdint): int
s
c
#
GetDeaths(playerIdPlayerID): int
s
c
#
GetDenies(playerIdPlayerID): int
s
c
#
GetEventPointsForPlayerID(playerIdPlayerID): uint
s
c
#
GetEventPremiumPoints(playerIdPlayerID): uint
s
c
#
GetEventRanks(playerIdPlayerID): unknown
s
c
#
GetGold(playerIdPlayerID): int
s
c
#
GetGoldLostToDeath(playerIdPlayerID): int
s
c
#
GetGoldPerMin(playerIdPlayerID): float
s
c
#
GetGoldSpentOnBuybacks(playerIdPlayerID): int
s
c
#
GetGoldSpentOnConsumables(playerIdPlayerID): int
s
c
#
GetGoldSpentOnItems(playerIdPlayerID): int
s
c
#
GetGoldSpentOnSupport(playerIdPlayerID): int
s
c
#
GetHealing(playerIdPlayerID): float
s
c
#
GetHeroDamageTaken(playerIdPlayerID, totalbool): int
s
c
#
GetKills(playerIdPlayerID): int
s
c
#
GetKillsDoneToHero(playerIdPlayerID, victimIdPlayerID): int
s
c
#
GetLastHitMultikill(playerIdPlayerID): int
s
c
#
GetLastHits(playerIdPlayerID): int
s
c
#
GetLastHitStreak(playerIdPlayerID): int
s
c
#
GetLevel(playerIdPlayerID): int
s
c
#
GetMisses(playerIdPlayerID): int
s
c
#
GetNearbyCreepDeaths(playerIdPlayerID): int
s
c
#
GetNetWorth(playerIdPlayerID): int
s
c
#
GetNthCourierForTeam(courierIndexint, teamNumberDOTATeam_t): CDOTA_Unit_Courier | nil
s
c
#
GetNthPlayerIDOnTeam(teamNumberDOTATeam_t, nthPlayerint): PlayerID
s
c
#
GetNumConsumablesPurchased(playerIdPlayerID): int
s
c
#
GetNumCouriersForTeam(teamNumberDOTATeam_t): int
s
c
#
GetNumItemsPurchased(playerIdPlayerID): int
s
c
#
GetPartyID(playerIdPlayerID): Uint64
s
c
#
GetPlayer(playerIdPlayerID): CDOTAPlayer | nil
s
c
#

Returns player entity for a player with specified id. Player entity represents a single connection, so a different entity might be returned. When player is disconnected nil would be returned.
GetPlayerCount(): int
s
c
#

Includes spectators and players not assigned to a team.
GetPlayerCountForTeam(teamDOTATeam_t): int
s
c
#
GetPlayerLoadedCompletely(playerIdPlayerID): bool
s
c
#
GetPlayerName(playerIdPlayerID): string
s
c
#
GetRawPlayerDamage(playerIdPlayerID): int
s
c
#
GetReliableGold(playerIdPlayerID): int
s
c
#
GetRespawnSeconds(playerIdPlayerID): int
s
c
#
GetRoshanKills(playerIdPlayerID): int
s
c
#
GetRunePickups(playerIdPlayerID): int
s
c
#
GetSelectedHeroEntity(playerIdPlayerID): CDOTA_BaseNPC_Hero | nil
s
c
#
GetSelectedHeroID(playerIdPlayerID): int
s
c
#
GetSelectedHeroName(playerIdPlayerID): string
s
c
#
GetSteamAccountID(playerIdPlayerID): uint
s
c
#
GetSteamID(playerIdPlayerID): Uint64
s
c
#

Get the 64 bit steam ID for a given player.
GetStreak(playerIdPlayerID): int
s
c
#
GetStuns(playerIdPlayerID): float
s
c
#
GetTeam(playerIdPlayerID): DOTATeam_t
s
c
#
GetTeamKills(teamDOTATeam_t): int
s
c
#
GetTeamPlayerCount(): int
s
c
#

Players on a valid team (radiant, dire, or custom*) who haven't abandoned the game.
GetTimeOfLastConsumablePurchase(playerIdPlayerID): float
s
c
#
GetTimeOfLastDeath(playerIdPlayerID): float
s
c
#
GetTimeOfLastItemPurchase(playerIdPlayerID): float
s
c
#
GetTotalEarnedGold(playerIdPlayerID): int
s
c
#
GetTotalEarnedXP(playerIdPlayerID): int
s
c
#
GetTotalGoldSpent(playerIdPlayerID): int
s
c
#
GetTowerDamageTaken(playerIdPlayerID, totalbool): int
s
c
#
GetTowerKills(playerIdPlayerID): int
s
c
#
GetUnitShareMaskForPlayer(playerIdPlayerID, otherPlayerIdPlayerID): int
s
c
#
GetUnreliableGold(playerIdPlayerID): int
s
c
#
GetXPPerMin(playerIdPlayerID): float
s
c
#
HasCustomGameTicketForPlayerID(playerIdPlayerID): bool
s
c
#

Does this player have a custom game ticket for this game?
HasRandomed(playerIdPlayerID): bool
s
c
#
HasSelectedHero(playerIdPlayerID): bool
s
c
#
HaveAllPlayersJoined(): bool
s
c
#
IncrementAssists(playerIdPlayerID, victimIdPlayerID): nil
s
c
#
IncrementClaimedDenies(playerIdPlayerID): nil
s
c
#
IncrementClaimedMisses(playerIdPlayerID): nil
s
c
#
IncrementDeaths(playerIdPlayerID, killerIdPlayerID): nil
s
c
#
IncrementDenies(playerIdPlayerID): nil
s
c
#
IncrementKills(playerIdPlayerID, victimIdPlayerID): nil
s
c
#
IncrementLastHitMultikill(playerIdPlayerID): nil
s
c
#
IncrementLastHits(playerIdPlayerID): nil
s
c
#
IncrementLastHitStreak(playerIdPlayerID): nil
s
c
#
IncrementMisses(playerIdPlayerID): nil
s
c
#
IncrementNearbyCreepDeaths(playerIdPlayerID): nil
s
c
#
IncrementStreak(playerIdPlayerID): nil
s
c
#
IncrementTotalEarnedXP(playerIdPlayerID, xpint, reasonEDOTA_ModifyXP_Reason): nil
s
c
#
IsBroadcaster(playerIdPlayerID): bool
s
c
#
IsDisableHelpSetForPlayerID(playerIdPlayerID, otherPlayerIdPlayerID): bool
s
c
#
IsFakeClient(playerIdPlayerID): bool
s
c
#
IsHeroSelected(heronamestring): bool
s
c
#
IsHeroSharedWithPlayerID(unitOwnerPlayerIdPlayerID, otherPlayerIdPlayerID): bool
s
c
#
IsValidPlayer(playerIdint): bool
s
c
#
IsValidPlayerID(playerIdint): bool
s
c
#
IsValidTeamPlayer(playerIdint): bool
s
c
#
IsValidTeamPlayerID(playerIdint): bool
s
c
#
ModifyGold(playerIdPlayerID, goldChangeint, reliablebool, reasonEDOTA_ModifyGold_Reason): int
s
c
#
NumPlayers(): int
s
c
#
NumTeamPlayers(): int
s
c
#
RecordConsumableAbilityChargeChange(playerIdPlayerID, itemDefinitionIndexint, chargeIncrementOrDecrementint): nil
s
c
#

Increment or decrement consumable charges (nPlayerID, item_definition_index, nChargeIncrementOrDecrement).
ReplaceHeroWith(playerIdPlayerID, heroClassstring, goldint, xpint): CDOTA_BaseNPC_Hero
s
c
#

Replaces the player's hero with a new one of the specified class, gold and XP.
ResetBuybackCostTime(playerIdPlayerID): nil
s
c
#
ResetTotalEarnedGold(playerIdPlayerID): nil
s
c
#
SetBuybackCooldownTime(playerIdPlayerID, buybackCooldownfloat): nil
s
c
#
SetBuybackGoldLimitTime(playerIdPlayerID, buybackCooldownfloat): nil
s
c
#
SetCameraTarget(playerIdPlayerID, targetCDOTA_BaseNPC): nil
s
c
#

Force the given player's camera to follow the given entity.
SetCanRepick(playerIdPlayerID, canRepickbool): nil
s
c
#
SetCustomBuybackCooldown(playerIdPlayerID, cooldownTimefloat): nil
s
c
#

Set the buyback cooldown for this player.
SetCustomBuybackCost(playerIdPlayerID, goldCostint): nil
s
c
#

Set the buyback cost for this player.
SetCustomPlayerColor(playerIdPlayerID, rint, gint, bint): nil
s
c
#

Set custom color for player.
SetCustomTeamAssignment(playerIdPlayerID, teamAssignmentDOTATeam_t): nil
s
c
#

Set custom team assignment for this player.
SetGold(playerIdPlayerID, goldint, reliablebool): nil
s
c
#
SetHasRandomed(playerIdPlayerID): nil
s
c
#
SetLastBuybackTime(playerIdPlayerID, lastBuybackTimeint): nil
s
c
#
SetOverrideSelectionEntity(playerIdPlayerID, entityCDOTA_BaseNPC): nil
s
c
#

Set the forced selection entity for a player.
SetUnitShareMaskForPlayer(playerIdPlayerID, otherPlayerIdPlayerID, flagint, statebool): nil
s
c
#
SpendGold(playerIdPlayerID, costint, reasonEDOTA_ModifyGold_Reason): nil
s
c
#
UpdateTeamSlot(playerIdPlayerID, teamNumberDOTATeam_t, desiredSlotint): nil
s
c
#
WhoSelectedHero(heroFilenamestring): PlayerID
s
c
#