Lua:UpdateObjectiveIcon
From Fortress Forever Wiki
Jump to navigationJump to search
UpdateObjectiveIconSet the objective icon for a single player. UsageUpdateObjectiveIcon(player, entity) Inputplayer(CFFPlayer) The player who 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 Examplelocal player = CastToPlayer( player_entity ) --set the player's objective to a cap point UpdateObjectiveIcon( player, GetEntityByName( team.."_cap" ) ) --clear it after a cap UpdateObjectiveIcon( player, nil ) |