Difference between revisions of "Category:Lua Commands"
Line 6: | Line 6: | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
− | ! LUA Command !! | + | ! LUA Command !! Description |
|- | |- | ||
| [[Lua:Tick|tick]]() || This function is called every second by the engine. | | [[Lua:Tick|tick]]() || This function is called every second by the engine. | ||
Line 22: | Line 22: | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
− | ! LUA Command !! | + | ! LUA Command !! Description |
|- | |- | ||
| [[Lua:player_spawn|player_spawn]]( player ) || triggers when a player spawns. | | [[Lua:player_spawn|player_spawn]]( player ) || triggers when a player spawns. | ||
Line 85: | Line 85: | ||
= Casting Commands = | = Casting Commands = | ||
− | + | These functions cast game objects into different data types. See [[Lua:Entity_typing]] | |
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
− | ! LUA Command !! | + | ! LUA Command !! Description |
|- | |- | ||
| [[Lua:CastToBeam|CastToBeam]]( ent_id ) || tries to cast the entity to a beam (to see if whatever triggered the event was a laser beam, a la SD2). If it fails, it returns null. | | [[Lua:CastToBeam|CastToBeam]]( ent_id ) || tries to cast the entity to a beam (to see if whatever triggered the event was a laser beam, a la SD2). If it fails, it returns null. | ||
Line 110: | Line 110: | ||
− | = Entity | + | = Entity Checks = |
these commands are used to Check if a passed in entity is a game entity of a specific type | 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" | ||
− | ! LUA Command !! | + | ! LUA Command !! Description |
|- | |- | ||
| [[Lua:IsPlayer|IsPlayer]]( ent_id ) || used to see if a passed in entity is a player to before actions are performed on said player. | | [[Lua:IsPlayer|IsPlayer]]( ent_id ) || used to see if a passed in entity is a player to before actions are performed on said player. | ||
Line 133: | Line 133: | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
− | ! LUA Command !! | + | ! LUA Command !! Description |
|- | |- | ||
| [[Lua:BroadCastMessage|BroadCastMessage]]( message ) || broadcasts a given message to all players. | | [[Lua:BroadCastMessage|BroadCastMessage]]( message ) || broadcasts a given message to all players. | ||
Line 150: | Line 150: | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
− | ! LUA Command !! | + | ! 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. |
Revision as of 19:16, 11 May 2009
Global EventsThese are functions that are called by the engine that do not belong inside any class. Simply declare them as globals in the lua namespace.
Player Triggered CommandsThese commands are triggered when a event with a player happens in-game.
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.
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