def METHOD_NAME(self,state,id,events):
    global IsPlaying
    global CurrentFile
    global SoundObjIndex
    global TriggeringAvatar
    if not state:
        return
    if id == actTrigger.id:
        TriggeringAvatar = PtFindAvatar(events)
        respOneShot.run(self.key, events = events)
    elif id == respOneShot.id:
        self.NextSong()
        respStop.run(self.key)
        if CurrentFile:
            soSoundObj.value.setSoundFilename(SoundObjIndex, CurrentFile[0], CurrentFile[1])
            respStart.run(self.key)
            currentSong = (CurrentFile[0],)
        else:
            currentSong = ("",)
        playerid = PtGetClientIDFromAvatarKey(TriggeringAvatar.getKey())
        localClient = PtGetLocalClientID()
        islocalavatar = (playerid == localClient)
        sdlvarisvalid = sdlCurrentSongVar.value
        if islocalavatar and sdlvarisvalid:
            PtDebugPrint("Setting cur song var to: ", currentSong)
            ageSDL = PtGetAgeSDL()
            ageSDL[sdlCurrentSongVar.value] = currentSong