Difference between revisions of "Lua:ConsoleToAll"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: {{Infobox manual/Header}} ==ConsoleToAll== Sends a text readout to the server's console. Contrary to what the name implies, players will not recieve this message unless they are the one r...)
 
(No difference)

Latest revision as of 14:05, 11 May 2009


ConsoleToAll

Sends a text readout to the server's console. Contrary to what the name implies, players will not recieve this message unless they are the one running the server. ConsoleToAll is useful for debugging lua scripts

Usage

ConsoleToAll(text)

Input

text(string)

Output

Returns nothing

Example

function basecap:ontrigger ( trigger_entity )
	if IsPlayer( trigger_entity ) then
		ConsoleToAll("player touched the cap")
	end
end