Difference between revisions of "Lua Commands"
From Fortress Forever Wiki
Jump to navigationJump to searchMulchman MM (talk | contribs) |
Mulchman MM (talk | contribs) |
||
Line 34: | Line 34: | ||
==Manipulating Players== | ==Manipulating Players== | ||
*AddAmmo | *AddAmmo | ||
− | * | + | *AddFrags |
+ | *AddHealth | ||
*AddArmor | *AddArmor | ||
− | * | + | *IsPlayer |
− | |||
*MarkRadioTag | *MarkRadioTag | ||
+ | *RemoveAmmo | ||
*RespawnAllPlayers | *RespawnAllPlayers | ||
*RespawnPlayer | *RespawnPlayer | ||
+ | *SetPlayerLocation | ||
+ | *RemoveLocation | ||
+ | *SetPlayerDisguisable | ||
+ | *SetPlayerRespawnDelay | ||
==Manipulating Teams== | ==Manipulating Teams== |
Revision as of 09:37, 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
- EmitSound
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
- MarkRadioTag
- RemoveAmmo
- RespawnAllPlayers
- RespawnPlayer
- SetPlayerLocation
- RemoveLocation
- SetPlayerDisguisable
- SetPlayerRespawnDelay
Manipulating Teams
- AddTeamScore
- SetTeamAllies
- SetTeamClassLimit
- SetTeamPlayerLimit
- DropItem
- Pickup
- PlayerHasItem
- RemoveItem
- Respawn
- ReturnItem
Misc
- IncludeScript
- PrecacheModel
- PrecacheSound
- Random / rand
- SetModel