View of /branches/taiga-0.1/ModularRex/ScriptEngines/PythonScript/Samples/samplesound.py
Parent Directory
|
Revision Log
Revision 370 -
(download)
(as text)
(annotate)
Tue Apr 27 10:41:58 2010 UTC (3 years, 1 month ago) by mikkopa
File size: 847 byte(s)
Tue Apr 27 10:41:58 2010 UTC (3 years, 1 month ago) by mikkopa
File size: 847 byte(s)
Created branch for Taiga 0.1 specific changes.
import rxactor
import rxavatar
import sys
import clr
asm = clr.LoadAssemblyByName('OpenSim.Region.ScriptEngine.Shared')
class SoundTest(rxactor.Actor):
@staticmethod
def GetScriptClassName():
return "samplesound.SoundTest"
def EventCreated(self):
super(self.__class__,self).EventCreated()
print "samplesound.SoundTest EventCreated"
self.Status = 0
def EventTouch(self,vAvatar):
if(self.Status == 0):
self.PlayClientSound(vAvatar.AgentId,"musicsnd",1)
self.llShout(0, "PlayClientSound, avatar as source")
elif(self.Status == 1):
self.llPlaySound("b2912295-0d02-4332-a940-5679b14683e7",1)
self.llShout(0, "llPlaySound, prim as source")
self.Status += 1
if(self.Status > 2):
self.Status = 0
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

