Lua:UpdateTeamObjectiveIcon

From Fortress Forever Wiki
Revision as of 22:06, 11 May 2009 by Crazycarl (talk | contribs) (New page: {{Infobox manual/Header}} ==UpdateTeamObjectiveIcon== Sets the objective icon for every player on a team. ===Usage=== <pre>UpdateTeamObjectiveIcon(team, entity)</pre> ===Input=== team(CF...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
UpdateTeamObjectiveIcon( team, GetEntityByName( team.."_cap" ) )
--clear it after a cap
UpdateTeamObjectiveIcon( player, nil )