Difference between revisions of "Lua Commands"

From Fortress Forever Wiki
Jump to navigationJump to search
 
Line 1: Line 1:
**Communicating with player:
+
=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
+
=Interfacing with map entities=
 
*SpawnEntityAtPlayer
 
*SpawnEntityAtPlayer
 
*FireOutput
 
*FireOutput
  
**Finding Information about the Players
+
=Finding Information about the Players=
 
*GetPlayerTeam
 
*GetPlayerTeam
 
*GetPlayerClass
 
*GetPlayerClass
Line 19: Line 22:
 
*GetPlayer
 
*GetPlayer
  
**Manipulating Players
+
=Manipulating Players=
 
*AddAmmo
 
*AddAmmo
 
*RemoveAmmo
 
*RemoveAmmo
Line 27: Line 30:
 
*MarkRadioTag
 
*MarkRadioTag
  
**Manipulating Teams
+
=Manipulating Teams=
 
*AddTeamScore
 
*AddTeamScore
 
*SetTeamAllies
 
*SetTeamAllies
 
*SetTeamClassLimit
 
*SetTeamClassLimit
  
**Item/Flag related
+
=Item/Flag related=
 
*PlayerHasItem
 
*PlayerHasItem
 
*RemoveItem
 
*RemoveItem
 
*ReturnItem
 
*ReturnItem
  
**Misc
+
=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

Item/Flag related

  • PlayerHasItem
  • RemoveItem
  • ReturnItem

Misc

  • IncludeScript
  • Random / rand
  • RespawnAllPlayers