Difference between revisions of "Category:Lua Commands"
From Fortress Forever Wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
{{Infobox manual/Header}} | {{Infobox manual/Header}} | ||
− | LUA commands that | + | {{Infobox mapping}} |
+ | LUA commands that are specific for Fortress Forever. This list is incomplete and will be replaced eventually, and everything put into categories. | ||
== Casting Commands == | == Casting Commands == | ||
Line 27: | Line 28: | ||
|} | |} | ||
− | = Entity Checks = | + | ==Entity Checks== |
− | + | These commands are used to check if a passed in entity is a game entity of a specific type | |
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
Line 46: | Line 47: | ||
|} | |} | ||
− | = Player messaging and sounds = | + | ==Player messaging and sounds== |
these are used to send text messages and sounds to players. | these are used to send text messages and sounds to players. | ||
Line 55: | Line 56: | ||
|- | |- | ||
| [[Lua:BroadCastMessageToPlayer|BroadCastMessageToPlayer]]( player, message ) || broadcasts message to one player. | | [[Lua:BroadCastMessageToPlayer|BroadCastMessageToPlayer]]( player, message ) || broadcasts message to one player. | ||
+ | |- | ||
+ | | [[Lua:SmartTeamMessage|SmartTeamMessage]] || | ||
+ | |- | ||
+ | | [[Lua:SmartMessage|Smartmessage]] || | ||
|- | |- | ||
| [[Lua:BroadCastSound|BroadCastSound]]( sound ) || | | [[Lua:BroadCastSound|BroadCastSound]]( sound ) || | ||
Line 60: | Line 65: | ||
| [[Lua:BroadCastSoundToPlayer|BroadCastSoundToPlayer]]( player, sound ) || | | [[Lua:BroadCastSoundToPlayer|BroadCastSoundToPlayer]]( player, sound ) || | ||
|- | |- | ||
− | | [[Lua: | + | | [[Lua:SmartSound|SmartSound]] || |
+ | |- | ||
+ | | [[Lua:SmartTeamSound|SmartTeamSound]] || | ||
+ | |- | ||
+ | | [[Lua:SpeakAll|SpeakAll]] || | ||
+ | |- | ||
+ | | [[Lua:SpeakPlayer|SpeakPlayer]] || | ||
+ | |- | ||
+ | | [[Lua:SpeakTeam|SpeakTeam]] || | ||
|} | |} | ||
− | = | + | |
− | + | ==Schedules== | |
+ | Schedules are a way to delay the effects of a script for a specific length of time. | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
! LUA Command !! Description | ! 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: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: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: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. | ||
+ | |} | ||
+ | |||
+ | ==HUD Items== | ||
+ | Through Lua, a map can display information on a player's screen. | ||
+ | {| border="1" cellspacing="0" | ||
+ | ! LUA Command !! Description | ||
|- | |- | ||
| [[Lua:AddHudIcon|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. | | [[Lua:AddHudIcon|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. | ||
Line 79: | Line 103: | ||
| [[Lua:AddHudIconToAll|AddHudIconToAll]]( HudIconType, NameOfHudUcon, X, Y, W, H, A ) || adds HUD icon to all players like those used for flag info. | | [[Lua:AddHudIconToAll|AddHudIconToAll]]( HudIconType, NameOfHudUcon, X, Y, W, H, A ) || adds HUD icon to all players like those used for flag info. | ||
|- | |- | ||
− | | [[Lua: | + | | [[Lua:AddHudText|AddHudText]] || |
+ | |- | ||
+ | | [[Lua:AddHudTextToAll|AddHudTextToAll]] || | ||
+ | |- | ||
+ | | [[Lua:AddHudTimer|AddHudTimer]] || | ||
+ | |- | ||
+ | | [[Lua:AddHudTimerToAll|AddHudTimerToAll]] || | ||
+ | |- | ||
+ | | [[Lua:RemoveHudItem|RemoveHudItem]] || | ||
+ | |- | ||
+ | | [[Lua:RemoveHudItemFromAll|RemoveHudItemFromAll]] || | ||
+ | |} | ||
+ | |||
+ | ==Other Commands== | ||
+ | other misc commands not lumped into any group as of yet. | ||
+ | |||
+ | {| border="1" cellspacing="0" | ||
+ | ! LUA Command !! Description | ||
|- | |- | ||
− | | [[Lua: | + | | [[Lua:ConsoleToAll|ConsoleToAll]]( message ) || sends a message to server console. Inaccurately named--players will not see this. |
|- | |- | ||
| [[Lua:GetConvar|GetConvar]]( cvar ) || checks the value of a console variable (cvar) | | [[Lua:GetConvar|GetConvar]]( cvar ) || checks the value of a console variable (cvar) | ||
Line 142: | Line 183: | ||
|- | |- | ||
| [[Lua:RemoveEntity|RemoveEntity]]( ent_id ) || removes entity. | | [[Lua:RemoveEntity|RemoveEntity]]( ent_id ) || removes entity. | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| [[Lua:RespawnAllPlayers|RespawnAllPlayers]]( ) || respawns everyone. | | [[Lua:RespawnAllPlayers|RespawnAllPlayers]]( ) || respawns everyone. | ||
Line 170: | Line 207: | ||
|- | |- | ||
| [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | | [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
[[Category:Lua]] | [[Category:Lua]] | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Revision as of 17:32, 10 July 2009
LUA commands that are specific for Fortress Forever. This list is incomplete and will be replaced eventually, and everything put into categories. Casting CommandsThese functions cast game objects into different data types. See Lua:Entity_typing
Entity ChecksThese commands are used to check if a passed in entity is a game entity of a specific type
Player messaging and soundsthese are used to send text messages and sounds to players.
SchedulesSchedules are a way to delay the effects of a script for a specific length of time.
HUD ItemsThrough Lua, a map can display information on a player's screen.
Other Commandsother misc commands not lumped into any group as of yet.
|
Subcategories
This category has the following 11 subcategories, out of 11 total.
Pages in category "Lua Commands"
The following 41 pages are in this category, out of 41 total.
L
- Lua Commands
- Lua:BroadCastMessage
- Lua:BroadCastMessageToPlayer
- Lua:BroadCastSound
- Lua:BroadCastSoundToPlayer
- Lua:Commands
- Lua:ConsoleToAll
- Lua:DisplayMessage
- Lua:Functions
- Lua:HasGameStarted
- Lua:IncludeScript
- Lua:info ff script
- Lua:IsDispenser
- Lua:IsGrenade
- Lua:IsGrenInNoGren
- Lua:IsPlayer
- Lua:IsPlayerInNoBuild
- Lua:IsSentrygun
- Lua:Menus
- Lua:OutputEvent
- Lua:PrecacheModel
- Lua:PrecacheSound
- Lua:RandomFlagTouchSpeak
- Lua:RandomFloat
- Lua:RandomInt
- Lua:SetTeamAllies
- Lua:SetTeamClassLimit
- Lua:SetTeamName
- Lua:SetTeamPlayerLimit
- Lua:SmartClassLimits
- Lua:SmartMessage
- Lua:SmartSound
- Lua:SmartSpeak
- Lua:SmartTeamMessage
- Lua:SmartTeamSound
- Lua:SmartTeamSpeak
- Lua:SpeakAll
- Lua:SpeakPlayer
- Lua:UpdateObjectiveIcon
- Lua:UpdateTeamObjectiveIcon