Lua:Timer

From Fortress Forever Wiki
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 Timer Managers

HUD timers can now be controlled by a separate timer object. This can be useful if a player joins the server and needs a timer added their screen with the correct value. These are to be used in conjunction with Lua:AddHudTimer, Lua:AddHudTimerToAll, and Lua:AddHudTimerToTeam.

Commands

  • AddTimer( timername, startvalue, increment )
  • RemoveTimer( timername )
  • integer GetTimerTime( timername )

Input

  • timername(string) The name for this timer.
  • startvalue(integer) The number of seconds to start at.
  • increment(integer) The number of seconds to add each second. Typically -1 should be used.

Note

The timer is strictly a visual aid. To delay important game events, Use the Scheduling System.