Gamemode.GetTeamColor

From GMod Wiki

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