Usermsg.echo

From EventScripts Community Encyclopedia



Method: echo

Module: usermsg
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Print a message into users console.

Arguments

  • useris - The user id of the player to send the hudhint to
  • msg - The message to send to the user


Examples

import usermsg
 
def player_jump(e):
    usermsg.echo(e['userid'],"You just jumped!")

Notes

  • You can create a newline with \n.
  • If your message is too huge it can't be send to the client
  • Make sure not to send too many messages in a gameframe. This will result in an error message causing all remaining echo messages not to be send.
 The above problem will only occur with a lot of messages at once (status list for 64 player servers for example). By splitting up the messages and sending them with a delay (using gamethread.delayed for example) this problem can be avoided.

See Also

blog comments powered by Disqus