Category:HUD Items

From Fortress Forever Wiki
Revision as of 21:01, 25 June 2011 by Crazycarl (talk | contribs) (2.42)
Jump to navigationJump to search


Mapping for FF
The Basics

Setting up Hammer
Getting Started With Lua
Releasing a map

FF-specific Entities

Lua location system

Map Templates
FF Lua Documentation

Entity Typing
Entity Collections

Commands
Callbacks

HUD items are visuals you can stick up on the player's screen through Lua. We use them for showing the player flag status and other useful information.

LUA Command Description
AddHudIcon( player, HudIconType, NameOfHudIcon, X, Y, Width, Height, Align ) adds HUD icon to given player of given type. Name is generally taken from the flag entity to apply the right kind. X, Y, W, H, and A are all standard.
AddHudIconToAll( HudIconType, NameOfHudUcon, X, Y, W, H, A ) adds HUD icon to all players like those used for flag info.
AddHudText Puts a bit of text on the screen.
AddHudTextToAll
AddHudTimer Puts a countdown timer on the screen of one player.
AddHudTimerToTeam Puts a countdown timer on the screen of players on a specified team.
AddHudTimerToAll
RemoveHudItem
RemoveHudItemFromAll