GrimThor3 Posted December 6, 2017 Share Posted December 6, 2017 (edited) Hello! I'm working on a mod that makes music play. My basic version of the code is below. ScriptName MusicPlayer extends ObjectReference MusicType Property music1 Auto Event OnActivate(ObjectReference akActionRef) if akActor == Game.GetPlayer() music1.Add() EndIf EndEvent I have the music1 chosen to be a high priority MusicType object; however, when activated, no music plays. Can anyone help me? Edited December 6, 2017 by GrimThor3 Link to comment Share on other sites More sharing options...
Tasheni Posted December 6, 2017 Share Posted December 6, 2017 Take a look at the wiki:https://www.creationkit.com/index.php?title=Sound_Script The bard's script also shows how to play music and you can look at the mod ClearSky Hideout. There's a music box that you can activate. Look at the scripts how it's done there. Link to comment Share on other sites More sharing options...
GrimThor3 Posted December 6, 2017 Author Share Posted December 6, 2017 Thanks, but I'm trying to do music, not sounds. They're different, trust me, I looked this up for hours. However, the ClearSkys Hideout is really cool. But, the author did not include any models or scripts so I can't really access anything or learn from it. Link to comment Share on other sites More sharing options...
Tasheni Posted December 7, 2017 Share Posted December 7, 2017 You can unpack the bsa and extract the scripts with bsa unpackerhttps://www.nexusmods.com/skyrim/mods/4804/? Link to comment Share on other sites More sharing options...
GrimThor3 Posted December 7, 2017 Author Share Posted December 7, 2017 Thanks dude! Link to comment Share on other sites More sharing options...
Tasheni Posted December 11, 2017 Share Posted December 11, 2017 I found this here in the forum. Perhaps it helps better:https://forums.nexusmods.com/index.php?/topic/561372-tutorial-addingreplacing-music-with-the-creation-kit/ Link to comment Share on other sites More sharing options...
Recommended Posts