Send message to a single player
Posted: Thu Oct 09, 2014 2:31 pm
Greetings,
I was wondering what the equivalent of es.tell is?
As I understand its
SayText2(Message, [Index], [Users]) - Little confused as to what the index is about... from what i can tell, the player saying the message? (Kind of want to get the same result as es.tell and es.msg)
This works but is viewable by everyone
I have tried TextMsg but this results in instant crashing when attempting to call it.
Regards, Grimston
I was wondering what the equivalent of es.tell is?
Syntax: Select all
#BuildMessage wraps a colored prefix to the message, that works fine
def Tell(self, msg, *target):
for t in target:
SayText2(BuildMessage(msg), 0, t).send()
#This event is in my own class, the GameEvent var is passed straight from the actual EventHook
def OnPlayerJump(self, GameEvent):
self.Tell("You have jumped!", index_from_userid(GameEvent.get_int("userid")))
As I understand its
SayText2(Message, [Index], [Users]) - Little confused as to what the index is about... from what i can tell, the player saying the message? (Kind of want to get the same result as es.tell and es.msg)
This works but is viewable by everyone
I have tried TextMsg but this results in instant crashing when attempting to call it.
Regards, Grimston