Open Source Platform
for interconnected virtual worlds

Content Scripting Python Text Messages

From RexWiki

Here's an example how to shout from a prim and use the avatar's name who touched the prim.

import rxactor
import rxavatar
import sys
import clr

class TestShout(rxactor.Actor):
    def GetScriptClassName():
        return "testobject.TestShout"

    def EventTouch(self,vAvatar):
        messtr = "Hello "+ vAvatar.GetFullName()
        self.llShout(0,messtr)