Difference between revisions of "Category:Messages"

From Fortress Forever Wiki
Jump to navigationJump to search
m (2.42)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox mapping}}
 
{{Infobox mapping}}
 
This group of Lua Commands deals with notifying players about events in the game.
 
This group of Lua Commands deals with notifying players about events in the game.
 +
 +
NOTE: Since FF v2.3, the 'BroadCast' functions can also be used with 'Broadcast'.
 
{| border="1" cellspacing="0"
 
{| border="1" cellspacing="0"
 
! LUA Command !! Description
 
! LUA Command !! Description
Line 33: Line 35:
 
|-
 
|-
 
| ChatToPlayer(player,string) || Displays a message in chat to just one player
 
| ChatToPlayer(player,string) || Displays a message in chat to just one player
 +
|-
 +
| [[Lua:DisplayMessage|SendHintToPlayer]]( player, string ) || Displays a message in the players hint box.
 +
|-
 +
| [[Lua:DisplayMessage|SendHintToTeam]]( teamid, string ) || Displays a message in the teams hint box.
 +
|-
 +
| [[Lua:DisplayMessage|SendHintToAll]]( string ) || Displays a message in everyones hint box.
 
|}
 
|}
 
[[Category:Lua_Commands]]
 
[[Category:Lua_Commands]]

Latest revision as of 17:33, 30 March 2015

Mapping for FF
The Basics

Setting up Hammer
Getting Started With Lua
Releasing a map

FF-specific Entities

Lua location system

Map Templates
FF Lua Documentation

Entity Typing
Entity Collections

Commands
Callbacks

This group of Lua Commands deals with notifying players about events in the game.

NOTE: Since FF v2.3, the 'BroadCast' functions can also be used with 'Broadcast'.

LUA Command Description
BroadCastMessage( message ) broadcasts a given message to all players.
BroadCastMessageToPlayer( player, message ) broadcasts message to one player.
SmartTeamMessage
Smartmessage
BroadCastSound( sound ) Plays a selected sound for players on the server
BroadCastSoundToPlayer( player, sound )
SmartSound
SmartTeamSound
SpeakAll Plays a vox sentence for everyone on the server
SpeakPlayer
SmartSpeak
RandomFlagTouchSpeak() Plays a predetermined set of flag touch announcements for the server.
ObjectiveNotice( player, string ) Puts a notice in the kill notifications with the player's name, followed by the string. Use it when a player does something special.
ChatToAll(string) Displays a message in chat
ChatToPlayer(player,string) Displays a message in chat to just one player
SendHintToPlayer( player, string ) Displays a message in the players hint box.
SendHintToTeam( teamid, string ) Displays a message in the teams hint box.
SendHintToAll( string ) Displays a message in everyones hint box.