Difference between revisions of "Lua Commands"

From Fortress Forever Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
=Introduction=
 
=Introduction=
Words words words words words words words words words words words words words
+
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==
 
==Communicating with player==

Revision as of 09:28, 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

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

  • DropItem
  • Pickup
  • PlayerHasItem
  • RemoveItem
  • Respawn
  • ReturnItem

Misc

  • IncludeScript
  • Random / rand
  • RespawnAllPlayers

Map Location System