Created
November 6, 2018 22:25
-
-
Save Atlante45/4e2f433e580eb84334a7d7e92da75199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAvatarWithName(name) { | |
var avatars = AvatarList.getAvatarIdentifiers(); | |
for (i in avatars) { | |
if (AvatarList.getAvatar(avatars[i]).displayName == name) { | |
return avatars[i]; | |
} | |
} | |
return null; | |
} | |
var soloTarget = getAvatarWithName("SoloTarget"); | |
console.log("Adding " + soloTarget + " to solo list."); | |
Audio.addToSoloList([soloTarget]); | |
console.log("isSoloing: " + Audio.isSoloing + "\nList length: " + Audio.soloList.length + "\nList: " + Audio.soloList) | |
Script.scriptEnding.connect(function() { | |
console.log("Resetting solo list."); | |
Audio.resetSoloList(); | |
console.log("isSoloing: " + Audio.isSoloing + "\nList length: " + Audio.soloList.length + "\nList: " + Audio.soloList) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment