Lua:UpdateTeamObjectiveIcon

From Fortress Forever Wiki
Jump to navigationJump to search


UpdateTeamObjectiveIcon

Sets the objective icon for every player on a team.

Usage

UpdateTeamObjectiveIcon(team, entity)

Input

team(CFFTeam) The team that will see the objective. entity(CBaseEntity) The entity that will be the objective. Could be a flag, player, or trigger. Use nil to remove the objective.

Output

Returns: nothing

Example

--set the objective to a cap point
team = GetTeam(Team.kRed)
UpdateTeamObjectiveIcon( team, GetEntityByName( team.."_cap" ) )
--clear it after a cap
UpdateTeamObjectiveIcon( team, nil )