GetChatMessage: Difference between revisions
m
Made a small edit.
(Created page with "{{Template:ACSWarning}} str '''GetChatMessage''' (int player, int offset) '''(<font color="darkblue">Zandronum 3.1</font> <font color="red">only</font>)''' ==Usage== Returns...") |
m (Made a small edit.) |
||
Line 5: | Line 5: | ||
Returns the last chat message from a player, or the server via RCON. Up to 5 chat messages are stored into memory for each player, in order from last message to oldest message sent. Every time a player sends a new message, all stored messages are shifted by one, and any messages older than the last 5 messages sent are overwritten and deleted. You may use this in conjunction with the <tt>GAMEVENT_CHAT</tt> event script type to get a player's messages as soon as they're received. | Returns the last chat message from a player, or the server via RCON. Up to 5 chat messages are stored into memory for each player, in order from last message to oldest message sent. Every time a player sends a new message, all stored messages are shifted by one, and any messages older than the last 5 messages sent are overwritten and deleted. You may use this in conjunction with the <tt>GAMEVENT_CHAT</tt> event script type to get a player's messages as soon as they're received. | ||
NOTE: Private chat messages (i.e. those sent using <tt>sayto</tt> or <tt>sayto_idx</tt>) are not accounted for and | NOTE: Private chat messages (i.e. those sent using <tt>sayto</tt> or <tt>sayto_idx</tt>) are not accounted for and will not be stored into memory, nor are they retrievable. | ||
==Parameters== | ==Parameters== | ||
*player: The number of the player whose chat message you want to retrieve. If you want to retrieve any messages from the server, set this to -1 instead. | *player: The number of the player whose chat message you want to retrieve. If you want to retrieve any messages from the server, set this to -1 instead. |