Lua:UpdateTeamObjectiveIcon
From Fortress Forever Wiki
Jump to navigationJump to search
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 UpdateTeamObjectiveIcon( team, GetEntityByName( team.."_cap" ) ) --clear it after a cap UpdateTeamObjectiveIcon( player, nil ) |