Gamemode.GetTeamColor

From GMod Wiki

Revision as of 23:07, 21 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameGetTeamColor
SyntaxGM:GetTeamColor( Entity ent )
DescriptionCalled when the gamemode draws the name of the player you're looking at.
ReturnsColor
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.GetTeamColor]Gamemode.GetTeamColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionHow it is defined in the base gamemode
Used onNewerClient.png
Code
function GM:GetTeamColor( ent )
 
	local team = TEAM_UNASSIGNED
 
	if (ent.Team) then team = ent:Team() end
 
	return GAMEMODE:GetTeamNumColor( team )
 
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox