Difference between revisions of "Lua Commands"

From Fortress Forever Wiki
Jump to navigationJump to search
(Redirecting to Category:LUA Commands)
Line 1: Line 1:
−
=Introduction=
+
#REDIRECT [[Category:LUA_Commands]]
−
LUA Commands are functions LUA can use to call into game code to do something and usually return a result. These are also referred to as "entry points".
 
−
 
 
−
==Communicating with player==
 
−
*BroadCastMessage
 
−
*BroadCastMessageToPlayer
 
−
*BroadCastSound
 
−
*BroadCastSoundToPlayer
 
−
*ConsoleToAll
 
−
*EmitSound
 
−
*SmartMessage
 
−
*SmartSound
 
−
*SmartTeamMessage
 
−
*SmartTeamSound
 
−
 
 
−
==Interfacing with map entities==
 
−
*CloseDoor
 
−
*FireOutput
 
−
*LockButton
 
−
*LockDoor
 
−
*OpenDoor
 
−
*PressButton
 
−
*ToggleDoor
 
−
*SpawnEntityAtPlayer
 
−
*UnlockButton
 
−
*UnlockDoor
 
−
*UseEntity
 
−
 
 
−
==Finding Information about the Players==
 
−
*GetPlayer
 
−
*GetPlayerClass
 
−
*GetPlayerOnTeam
 
−
*GetPlayerName
 
−
*GetPlayerTeam
 
−
*NumPlayers
 
−
*NumPlayersOnTeam
 
−
 
 
−
==Manipulating Players==
 
−
*AddAmmo
 
−
*AddFrags
 
−
*AddHealth
 
−
*AddArmor
 
−
*[[LUA:IsPlayer|IsPlayer]]
 
−
*IsPlayerFeetDeepInWater
 
−
*IsPlayerUnderWater
 
−
*IsPlayerWaistDeepInWater
 
−
*MarkRadioTag
 
−
*RemoveAmmo
 
−
*RespawnAllPlayers
 
−
*RespawnPlayer
 
−
*SetPlayerDisguisable
 
−
*SetPlayerRespawnDelay
 
−
 
 
−
''Dealing with locations:''
 
−
*SetPlayerLocation
 
−
*RemoveLocation
 
−
 
 
−
''Dealing with nobuild areas:''
 
−
*[[LUA:IsPlayerInNoBuild|IsPlayerInNoBuild]]
 
−
 
 
−
==Manipulating Teams==
 
−
*AddTeamScore
 
−
*IsTeam1AlliedToTeam2
 
−
*[[LUA:SetTeamAllies|SetTeamAllies]]
 
−
*[[LUA:SetTeamClassLimit|SetTeamClassLimit]]
 
−
*[[LUA:SetTeamPlayerLimit|SetTeamPlayerLimit]]
 
−
*[[LUA:SetTeamName|SetTeamName]]
 
−
*[[LUA:SmartClassLimits|SmartClassLimits]]
 
−
 
 
−
==Manipulating Grenades==
 
−
*[[LUA:IsGrenade|IsGrenade]]
 
−
 
 
−
''Dealing with nogren areas:''
 
−
*[[LUA:IsGrenInNoGren|IsGrenInNoGren]]
 
−
 
 
−
==Item/Flag related==
 
−
*DropItem
 
−
*Pickup
 
−
*PlayerHasItem
 
−
*RemoveItem
 
−
*Respawn
 
−
*ReturnItem
 
−
 
 
−
==Misc==
 
−
*GetObjectsTeam
 
−
*IncludeScript
 
−
*[[IsDispenser|IsDispenser]]
 
−
*IsObjectsOriginInWater
 
−
*IsObjectsOriginInSlime
 
−
*[[IsSentrygun|IsSentrygun]]
 
−
*PrecacheModel
 
−
*PrecacheSound
 
−
*Random / rand
 
−
*SetGlobalRespawnDelay
 
−
*SetModel
 
−
 
 
−
==Special Things==
 
−
*[[LUA:Map Location System|Map Location System]]
 
−
*[[LUA:nobuild|No Build Areas - "nobuild"]]
 
−
*[[LUA:nogrens|No Grenade Areas - "nogrens"]]
 
  
 
[[Category:LUA]]
 
[[Category:LUA]]

Revision as of 20:22, 12 December 2007