Difference between revisions of "Lua Commands"

From Fortress Forever Wiki
Jump to navigationJump to search
Line 12: Line 12:
 
*SpawnEntityAtPlayer
 
*SpawnEntityAtPlayer
 
*FireOutput
 
*FireOutput
 +
*OpenDoor
 +
*CloseDoor
 +
*ToggleDoor
 +
*LockDoor
 +
*UnlockDoor
 +
*LockButton
 +
*UnlockButton
 +
*PressButton
  
 
==Finding Information about the Players==
 
==Finding Information about the Players==

Revision as of 09:20, 14 June 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
  • OpenDoor
  • CloseDoor
  • ToggleDoor
  • LockDoor
  • UnlockDoor
  • LockButton
  • UnlockButton
  • PressButton

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

Map Location System