-
Notifications
You must be signed in to change notification settings - Fork 3
WPlayerResource
lnx00 edited this page Feb 12, 2024
·
12 revisions
Warning
Deprecated! This wrapper has been replaced with lnxLib.TF2.PlayerResource since v1.0 and is no longer available!
Wrapper for the PlayerResource entity. Inherits from WEntity.
-
.FromEntity(entity)Creates a WPlayerResource from a given native Entity. -
.Get()Returns the current player resource entity ornilif it doesn't exist.
DT_PlayerResource
-
:GetPing(index)Returns the ping of the given player. -
:GetScore(index)Returns the score of the given player. -
:GetDeaths(index)Returns the deaths of the given player. -
:GetConnected(index)Returns if the given player is connected. -
:GetTeam(index)Returns the team number of the given player. -
:GetAlive(index)Returns if the given player is alive. -
:GetHealth(index)Returns the health of the given player. -
:GetAccountID(index)Returns the account ID of the given player. -
:GetValid(index)Returns if the given player is valid. -
:GetUserID(index)Returns the user ID of the given player.
DT_TFPlayerResource
-
:GetTotalScore(index)Returns the total score of the given player. -
:GetMaxHealth(index)Returns the max health of the given player. -
:GetMaxBuffedHealth(index)Returns the max buffed health of the given player. -
:GetPlayerClass(index)Returns the class number of the given player. -
:GetArenaSpectator(index). -
:GetActiveDominations(index)Returns the amount of active dominations of the given player. -
:GetNextRespawnTime(index)Returns when the given player will respawn. -
:GetChargeLevel(index). -
:GetDamage(index)Returns the damage amount of the given player. -
:GetDamageAssist(index)Returns the damage assist amount of the given player. -
:GetDamageBoss(index)Returns the boss damage of the given player. -
:GetHealing(index)Returns the healing of the given player. -
:GetHealingAssist(index)Returns the healing assist amount of the given player. -
:GetDamageBlocked(index)Returns the blocked damage of the given player. -
:GetCurrencyCollected(index)Returns the amount of currency collected of the given player. -
:GetBonusPoints(index). -
:GetPlayerLevel(index)Returns the level of the given player. -
:GetStreaks(index). -
:GetUpgradeRefundCredits(index). -
:GetBuybackCredits(index). -
:GetPartyLeaderRedTeamIndex(index). -
:GetPartyLeaderBlueTeamIndex(index). -
:GetEventTeamStatus(index). -
:GetPlayerClassWhenKilled(index). -
:GetConnectionState(index)Returns the connection state of the given player. -
:GetConnectTime(index)Returns the time the given player has been connected.