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

From Valve Developer Community
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.