How to play a sound through script
Sound.Play() - doesn't work
;Sound should be injected from Creation Kit.;Whatever object the script is attached to should provide a Properties buttonSound Property MagVampireTransform01 AutoFunction test() MAGVampireTransform01.Play(Game.GetPlayer())endFunction
; (Custom topics should always be injected. Vanilla topics can be injected or you can look them up at runtime)Topic Property BashTopic AutoFunction test() Topic pBashTopic if (BashTopic) pBashTopic = BashTopic else pBashTopic = (Game.GetForm(0x00039B94) As Topic) endif Game.GetPlayer().Say(pBashTopic)endFunction