Difference between revisions of "Lua:AddHudTimerToAll"
From Fortress Forever Wiki
Jump to navigationJump to search (New page: {{Infobox manual/Header}} ==AddHudTimerToAll== Puts a countdown timer on a the screen of each player. ===Usage=== <pre>AddHudTimerToAll(hudID, timer, interval, x, y, align)</pre> ===Inp...) |
m (2.42) |
||
| Line 1: | Line 1: | ||
{{Infobox manual/Header}} | {{Infobox manual/Header}} | ||
| + | {{Infobox_mapping}} | ||
==AddHudTimerToAll== | ==AddHudTimerToAll== | ||
| − | Puts a countdown timer on | + | Puts a countdown timer on the screens of all players. |
===Usage=== | ===Usage=== | ||
| − | <pre>AddHudTimerToAll( | + | <pre> |
| + | AddHudTimerToAll(huditemname, timer, interval, x, y, align) | ||
| + | |||
| + | AddHudTimerToAll(huditemname, timername, x, y ) | ||
| + | AddHudTimerToAll(huditemname, timername, x, y, align ) | ||
| + | AddHudTimerToAll(huditemname, timername, x, y, alignx, aligny )</pre> | ||
===Input=== | ===Input=== | ||
| − | * | + | * huditemname(string) the name of this timer (so we can remove it later) |
| − | * timer(integer | + | |
| − | * interval(integer | + | * 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 | ||
| + | |||
* x(integer) horizontal position | * x(integer) horizontal position | ||
* y(integer) vertical position | * y(integer) vertical position | ||
| Line 23: | Line 33: | ||
===Example=== | ===Example=== | ||
| − | + | ||
| − | + | AddHudTimerToAll("timer", 300, -1, 0, 70, 4)</pre> | |
| − | |||
| − | |||
| − | |||
| − | AddHudTimerToAll( " | ||
==Note== | ==Note== | ||
Latest revision as of 20:22, 25 June 2011
|
AddHudTimerToAllPuts a countdown timer on the screens of all players. UsageAddHudTimerToAll(huditemname, timer, interval, x, y, align) AddHudTimerToAll(huditemname, timername, x, y ) AddHudTimerToAll(huditemname, timername, x, y, align ) AddHudTimerToAll(huditemname, timername, x, y, alignx, aligny ) Input
OR:
OutputReturns noting ExampleAddHudTimerToAll("timer", 300, -1, 0, 70, 4)NoteThe timer is strictly a visual aid. To time actual game events, Use the Scheduling System |