Difference between revisions of "BotChat"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "===From the Scripting Manual=== ''procedure BotChat(ID: byte; Text: string);'' '''Parameter Info:''' ID (Byte): ID of the BOT ( Does (and will not, dont ask) not work on...")
 
Line 3: Line 3:
 
   
 
   
 
  '''Parameter Info:'''
 
  '''Parameter Info:'''
   ID (Byte): ID of the BOT ( Does (and will not, dont ask) not work on human players )
+
   ID (Byte): ID of the bot (Also works on human players)
 
   Text (String): Text for the bot to speak.
 
   Text (String): Text for the bot to speak.
 
   
 
   
Line 13: Line 13:
 
begin
 
begin
 
   BotChat(1,'Oogie boogie I come to you from beyond the grave!');
 
   BotChat(1,'Oogie boogie I come to you from beyond the grave!');
  // Assuming player ID 1 is a bot.
 
 
end;
 
end;
 
</source>
 
</source>

Revision as of 09:27, 10 September 2012

From the Scripting Manual

procedure BotChat(ID: byte; Text: string);

Parameter Info:
 ID (Byte): ID of the bot (Also works on human players)
 Text (String): Text for the bot to speak.

Description:
 This function will make a bot say something! They are alive!

Examples

  
begin
  BotChat(1,'Oogie boogie I come to you from beyond the grave!');
end;


External Links