Difference between revisions of "BotChat"
(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...") |
m (Formatted code) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | === | + | ===Scripting Manual=== |
− | ''procedure BotChat(ID: | + | ''procedure BotChat(ID: Byte; Text: string);'' |
'''Parameter Info:''' | '''Parameter Info:''' | ||
− | ID (Byte): ID of the | + | ID (Byte): ID of the bot (Also works on human players) |
− | Text ( | + | Text (string): Text for the bot to speak. |
'''Description:''' | '''Description:''' | ||
This function will make a bot say something! They are alive! | This function will make a bot say something! They are alive! | ||
+ | Note that as of Soldatserver 2.7.3 this will also work on human players, it is called BotChat for compatibility with older scripts. | ||
==Examples== | ==Examples== | ||
<source lang="pascal"> | <source lang="pascal"> | ||
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!'); |
− | |||
end; | end; | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Server Scripting]][[Category:Server Scripting Functions]] | [[Category:Server Scripting]][[Category:Server Scripting Functions]] |
Latest revision as of 16:22, 10 September 2012
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! Note that as of Soldatserver 2.7.3 this will also work on human players, it is called BotChat for compatibility with older scripts.
Examples
begin
BotChat(1, 'Oogie boogie I come to you from beyond the grave!');
end;