Messaging Library available!!

Official Announcements about Source.Python.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Messaging Library available!!

Postby satoon101 » Sat Aug 11, 2012 11:08 pm

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'))

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 10 guests