Difference between revisions of "Lua Commands"
From Fortress Forever Wiki
Jump to navigationJump to searchMulchman MM (talk | contribs) (→Misc) |
Mulchman MM (talk | contribs) |
||
| Line 10: | Line 10: | ||
==Interfacing with map entities== | ==Interfacing with map entities== | ||
| − | * | + | *CloseDoor |
*FireOutput | *FireOutput | ||
| + | *LockButton | ||
| + | *LockDoor | ||
*OpenDoor | *OpenDoor | ||
| − | * | + | *PressButton |
*ToggleDoor | *ToggleDoor | ||
| − | * | + | *SpawnEntityAtPlayer |
| + | *UnlockButton | ||
*UnlockDoor | *UnlockDoor | ||
| − | * | + | *UseEntity |
| − | |||
| − | |||
==Finding Information about the Players== | ==Finding Information about the Players== | ||
Revision as of 08:31, 14 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
Interfacing with map entities
- CloseDoor
- FireOutput
- LockButton
- LockDoor
- OpenDoor
- PressButton
- ToggleDoor
- SpawnEntityAtPlayer
- UnlockButton
- UnlockDoor
- UseEntity
Finding Information about the Players
- GetPlayerTeam
- GetPlayerClass
- GetPlayerName
- NumPlayersOnTeam
- GetPlayerOnTeam
- NumPlayers
- GetPlayer
Manipulating Players
- AddAmmo
- RemoveAmmo
- AddArmor
- AddHealth
- AddFrags
- MarkRadioTag
Manipulating Teams
- AddTeamScore
- SetTeamAllies
- SetTeamClassLimit
- DropItem
- Pickup
- PlayerHasItem
- RemoveItem
- Respawn
- ReturnItem
Misc
- IncludeScript
- PrecacheModel
- Random / rand
- RespawnAllPlayers
- SetModel