Difference between revisions of "Lua:AddHudTimerToTeam"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
m (2.42) |
||
Line 1: | Line 1: | ||
{{Infobox manual/Header}} | {{Infobox manual/Header}} | ||
{{Infobox_mapping}} | {{Infobox_mapping}} | ||
− | == | + | ==AddHudTimerToTeam== |
− | Puts a countdown timer on a | + | Puts a countdown timer on the screens of a specified team. |
===Usage=== | ===Usage=== | ||
− | <pre>AddHudTimerToTeam( team, huditemname, timername, x, y ) | + | <pre> |
+ | AddHudTimerToTeam(team, huditemname, timer, interval, x, y, align) | ||
+ | |||
+ | AddHudTimerToTeam( team, huditemname, timername, x, y ) | ||
AddHudTimerToTeam( team, huditemname, timername, x, y, align ) | AddHudTimerToTeam( team, huditemname, timername, x, y, align ) | ||
AddHudTimerToTeam( team, huditemname, timername, x, y, alignx, aligny )</pre> | AddHudTimerToTeam( team, huditemname, timername, x, y, alignx, aligny )</pre> | ||
Line 13: | Line 16: | ||
* team(CFFTeam) A reference to the team receiving the timer | * team(CFFTeam) A reference to the team receiving the timer | ||
* huditemname(string) the name of this timer (so we can remove it later) | * huditemname(string) the name of this timer (so we can remove it later) | ||
+ | |||
+ | * timer(integer) the inital number of seconds on the timer | ||
+ | * interval(integer) amount of time to add to the timer per second | ||
+ | OR: | ||
* timername(string) the name of a [[Lua:Timer]] object | * timername(string) the name of a [[Lua:Timer]] object | ||
+ | |||
* x(integer) horizontal position | * x(integer) horizontal position | ||
* y(integer) vertical position | * y(integer) vertical position | ||
Line 27: | Line 35: | ||
===Example=== | ===Example=== | ||
− | <pre>local | + | <pre>local team = GetTeam( Team.kRed ) |
− | + | AddHudTimerToTeam(team, "timer", 300, -1, 0, 70, 4)</pre> | |
==Note== | ==Note== | ||
− | The timer is strictly a visual aid. To time actual game events, Use the [[:Category:Schedules|Scheduling System | + | The timer is strictly a visual aid. To time actual game events, Use the [[:Category:Schedules|Scheduling System]] |
[[Category:HUD_Items]] | [[Category:HUD_Items]] | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Latest revision as of 20:20, 25 June 2011
AddHudTimerToTeamPuts a countdown timer on the screens of a specified team. UsageAddHudTimerToTeam(team, huditemname, timer, interval, x, y, align) AddHudTimerToTeam( team, huditemname, timername, x, y ) AddHudTimerToTeam( team, huditemname, timername, x, y, align ) AddHudTimerToTeam( team, huditemname, timername, x, y, alignx, aligny ) Input
OR:
OutputReturns noting Examplelocal team = GetTeam( Team.kRed ) AddHudTimerToTeam(team, "timer", 300, -1, 0, 70, 4) NoteThe timer is strictly a visual aid. To time actual game events, Use the Scheduling System |