Difference between revisions of "Lua Commands"
From Fortress Forever Wiki
Jump to navigationJump to searchMulchman MM (talk | contribs) |
Mulchman MM (talk | contribs) (→Misc) |
||
Line 84: | Line 84: | ||
*GetObjectsTeam | *GetObjectsTeam | ||
*IncludeScript | *IncludeScript | ||
− | *IsDispenser | + | *[[IsDispenser|IsDispenser]] |
*IsObjectsOriginInWater | *IsObjectsOriginInWater | ||
*IsObjectsOriginInSlime | *IsObjectsOriginInSlime | ||
− | *IsSentrygun | + | *[[IsSentrygun|IsSentrygun]] |
*PrecacheModel | *PrecacheModel | ||
*PrecacheSound | *PrecacheSound |
Revision as of 13:25, 19 June 2006
Introduction
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
- IsPlayer
- IsPlayerFeetDeepInWater
- IsPlayerUnderWater
- IsPlayerWaistDeepInWater
- MarkRadioTag
- RemoveAmmo
- RespawnAllPlayers
- RespawnPlayer
- SetPlayerDisguisable
- SetPlayerRespawnDelay
Dealing with locations:
- SetPlayerLocation
- RemoveLocation
Dealing with nobuild areas:
Manipulating Teams
- AddTeamScore
- IsTeam1AlliedToTeam2
- SetTeamAllies
- SetTeamClassLimit
- SetTeamPlayerLimit
- SmartClassLimits
Manipulating Grenades
Dealing with nogren areas:
- DropItem
- Pickup
- PlayerHasItem
- RemoveItem
- Respawn
- ReturnItem
Misc
- GetObjectsTeam
- IncludeScript
- IsDispenser
- IsObjectsOriginInWater
- IsObjectsOriginInSlime
- IsSentrygun
- PrecacheModel
- PrecacheSound
- Random / rand
- SetGlobalRespawnDelay
- SetModel