Difference between revisions of "Lua:UpdateTeamObjectiveIcon"
From Fortress Forever Wiki
Jump to navigationJump to search (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...) |
|||
Line 15: | Line 15: | ||
===Example=== | ===Example=== | ||
<pre>--set the objective to a cap point | <pre>--set the objective to a cap point | ||
+ | team = GetTeam(Team.kRed) | ||
UpdateTeamObjectiveIcon( team, GetEntityByName( team.."_cap" ) ) | UpdateTeamObjectiveIcon( team, GetEntityByName( team.."_cap" ) ) | ||
--clear it after a cap | --clear it after a cap | ||
− | UpdateTeamObjectiveIcon( | + | UpdateTeamObjectiveIcon( team, nil )</pre> |
[[Category:Objective_Icons]] | [[Category:Objective_Icons]] | ||
[[Category:Lua_Commands]] | [[Category:Lua_Commands]] | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Latest revision as of 21:07, 11 May 2009
UpdateTeamObjectiveIconSets the objective icon for every player on a team. UsageUpdateTeamObjectiveIcon(team, entity) Inputteam(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. OutputReturns: 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 ) |