Difference between revisions of "TActivePlayer.Say"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''procedure Say(Text: string)''''' Text: message to be sent to player. ==Description== Sends a /say message to a player. == Example == <syntaxhighlight lang="pascal"> P...")
 
 
Line 1: Line 1:
 
  '''''procedure Say(Text: string)'''''
 
  '''''procedure Say(Text: string)'''''
   Text: message to be sent to player.
+
   Text: message player will say
 
==Description==
 
==Description==
Sends a /say message to a player.
+
Makes a player say a message. Works like the old [[BotChat]], even though it works on humans too, not only bots.
  
 
== Example ==
 
== Example ==
 
<syntaxhighlight lang="pascal">
 
<syntaxhighlight lang="pascal">
Players[1].Say('Yo man!'); //sends "Yo man!" to player 1.
+
Players[1].Say('Yo!');
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:TActivePlayer]]
 
[[Category:TActivePlayer]]

Latest revision as of 16:23, 1 July 2013

procedure Say(Text: string)
 Text: message player will say

Description

Makes a player say a message. Works like the old BotChat, even though it works on humans too, not only bots.

Example

Players[1].Say('Yo!');