Page 1 of 1

Messaging Library available!!

Posted: Sat Aug 11, 2012 11:08 pm
by satoon101
The last 3 updates have brought about UserMessages and Filtering. Currently, there are no true filters, so all players will be added, but more changes are to come on that front. For now, you can use any of 5 different UserMessages, and print to specific players (using indexes not userids) or all players. The 5 UserMessages are Chat (uses SayText2), HudHint, Echo, Shake, and Fade. You can use them like the following:

Syntax: Select all

from events.decorator import Event
from messages import HudHint

@Event
def player_say(GameEvent):
HudHint([], 'Someone just said "%s"' % GameEvent.GetString('text'))