Difference between revisions of "Lua Commands"

From Fortress Forever Wiki
Jump to navigationJump to search
Line 32: Line 32:
 
==Manipulating Teams==
 
==Manipulating Teams==
 
*AddTeamScore
 
*AddTeamScore
[[*SetTeamAllies]]
+
*[[LUA:SetTeamAllies|SetTeamAllies]]
 
*SetTeamClassLimit
 
*SetTeamClassLimit
  

Revision as of 15:46, 28 May 2006

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

Item/Flag related

  • PlayerHasItem
  • RemoveItem
  • ReturnItem

Misc

  • IncludeScript
  • Random / rand
  • RespawnAllPlayers