Dota 2 Workshop Tools/Scripting/API/CBaseEntity.GetTeam

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 05:03, 26 April 2016 by Miniclipoide (talk | contribs) (Function Description)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Note: This page is automatically generated. Any changes may be overwritten

Function Description

int GetTeam()

Returns the entity's team.


Example
--Get player's team


playerHero = PlayerResource:GetPlayer(1):GetAssignedHero()

local team = PlayerHero:GetTeam()

Returns

int - entity's team.