listen
listen() → array messages
Lists the messages said with say() by the other entities since the end of your previous turn, oldest first, as [entity_id, message] pairs. The list is emptied at the end of your turn, not when you call listen(). A summon (
summon) has its own list.
Returns the array of the previous entities' say() messages, each in the form [entity_id, message].
Parameters
Return
- messages: The array of previous say() messages.