Difference between revisions of "Category:Schedules"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Infobox mapping}} | |
+ | Schedules are a way to delay the effects of a script for a specific length of time. For example, time-delayed events such as returning dropped flags, or giving players a break between rounds. They can repeat, such as if you wanted to give a player ammo every 10 seconds. | ||
+ | |||
+ | {| border="1" cellspacing="0" | ||
+ | ! LUA Command !! Description | ||
+ | |- | ||
+ | | [[Lua:AddSchedule|AddSchedule]]("name", time, function[, param1 ... param4]) || Schedules function to go off with (time) second delay. Optional parameters are applied to the function. | ||
+ | |- | ||
+ | | [[Lua:AddScheduleRepeating|AddScheduleRepeating]]("name", time, function[, param1 ... param4]) || Adds a schedule that repeats (function) constantly every (time) seconds. | ||
+ | |- | ||
+ | | [[Lua:AddScheduleRepeatingNotInfinitely|AddScheduleRepeatingNotInfinitely]]("name", time, function, counts[, param1 ... param4]) || Adds a schedule that repeats (function) (counts) times every (time) seconds. | ||
+ | |- | ||
+ | | [[Lua:DeleteSchedule|DeleteSchedule]]( schedulename ) || deletes an existing schedule. | ||
+ | |- | ||
+ | | [[Lua:RemoveSchedule|RemoveSchedule]]( schedulename ) || same as delete. | ||
+ | |} | ||
+ | |||
[[Category:Lua_Commands]] | [[Category:Lua_Commands]] |
Latest revision as of 22:38, 1 May 2010
|
Schedules are a way to delay the effects of a script for a specific length of time. For example, time-delayed events such as returning dropped flags, or giving players a break between rounds. They can repeat, such as if you wanted to give a player ammo every 10 seconds.
LUA Command | Description |
---|---|
AddSchedule("name", time, function[, param1 ... param4]) | Schedules function to go off with (time) second delay. Optional parameters are applied to the function. |
AddScheduleRepeating("name", time, function[, param1 ... param4]) | Adds a schedule that repeats (function) constantly every (time) seconds. |
AddScheduleRepeatingNotInfinitely("name", time, function, counts[, param1 ... param4]) | Adds a schedule that repeats (function) (counts) times every (time) seconds. |
DeleteSchedule( schedulename ) | deletes an existing schedule. |
RemoveSchedule( schedulename ) | same as delete. |
Pages in category "Schedules"
The following 5 pages are in this category, out of 5 total.