Difference between revisions of "Lua Commands"
From Fortress Forever Wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | + | =Introduction= | |
+ | Words words words words words words words words words words words words words | ||
+ | |||
+ | =Communicating with player= | ||
*BroadCastMessage | *BroadCastMessage | ||
*BroadCastMessageToPlayer | *BroadCastMessageToPlayer | ||
Line 6: | Line 9: | ||
*ConsoleToAll | *ConsoleToAll | ||
− | + | =Interfacing with map entities= | |
*SpawnEntityAtPlayer | *SpawnEntityAtPlayer | ||
*FireOutput | *FireOutput | ||
− | + | =Finding Information about the Players= | |
*GetPlayerTeam | *GetPlayerTeam | ||
*GetPlayerClass | *GetPlayerClass | ||
Line 19: | Line 22: | ||
*GetPlayer | *GetPlayer | ||
− | + | =Manipulating Players= | |
*AddAmmo | *AddAmmo | ||
*RemoveAmmo | *RemoveAmmo | ||
Line 27: | Line 30: | ||
*MarkRadioTag | *MarkRadioTag | ||
− | + | =Manipulating Teams= | |
*AddTeamScore | *AddTeamScore | ||
*SetTeamAllies | *SetTeamAllies | ||
*SetTeamClassLimit | *SetTeamClassLimit | ||
− | + | =Item/Flag related= | |
*PlayerHasItem | *PlayerHasItem | ||
*RemoveItem | *RemoveItem | ||
*ReturnItem | *ReturnItem | ||
− | + | =Misc= | |
*IncludeScript | *IncludeScript | ||
*Random / rand | *Random / rand | ||
*RespawnAllPlayers | *RespawnAllPlayers |
Revision as of 00:07, 20 October 2005
Introduction
Words words words words words words words words words words words words words
Communicating with player
- BroadCastMessage
- BroadCastMessageToPlayer
- BroadCastSound
- BroadCastSoundToPlayer
- ConsoleToAll
Interfacing with map entities
- SpawnEntityAtPlayer
- FireOutput
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
- PlayerHasItem
- RemoveItem
- ReturnItem
Misc
- IncludeScript
- Random / rand
- RespawnAllPlayers