Difference between revisions of "Lua:UpdateObjectiveIcon"
From Fortress Forever Wiki
Jump to navigationJump to search (New page: {{Infobox manual/Header}} ==UpdateObjectiveIcon== Set the objective icon for a single player. ===Usage=== <pre>UpdateObjectiveIcon(player, entity)</pre> ===Input=== player(CFFPlayer) Th...) |
(No difference)
|
Latest revision as of 21:02, 11 May 2009
|
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 ) |