antstubell Posted July 18, 2019 Share Posted July 18, 2019 Having an issue with a sound not playing. This is confusing as I have many FX sounds playing throughout my mod but this scripted event won't play the sound.I know the sound works because I have used it in an OnTrigEnt script multiple times but it won't do it in this script.Tried changing...MySoundFX.Play(MyMarker3)toMySoundFX.Play(Self)Added the... Utility.wait(1)to make sure I wasn't missing it but nothing. Rest of the script does exactly what it is supposed to do. Confused and it is probably staring me in the face.Message Property GreetMenu AutoMessage Property NoTooth AutoMiscObject Property Tooth AutoObjectReference Property MyMarker AutoObjectReference Property MyMarker2 AutoObjectReference Property MyMarker3 AutoSound Property MySoundFX AutoEvent OnActivate(ObjectReference akActionRef)if (Game.GetPlayer().GetItemCount(Tooth) < 1)NoTooth.show(); Shows messageelseif (Game.GetPlayer().GetItemCount(Tooth) > 0)Int iButton = GreetMenu.Show(); Shows menu.If iButton == 0; do stuffMySoundFX.Play(Self)Utility.wait(1)MyMarker.Disable()MyMarker2.Disable()Game.GetPlayer().RemoveItem(Tooth, 1)elseIf iButton == 1; do nothingEndIfEndIfEndEvent Link to comment Share on other sites More sharing options...
FatalityGrogen Posted February 9, 2021 Share Posted February 9, 2021 I know it's late but for anyone wondering, it should be Game.Getplayer instead of Self. If you put Self in for example a quest script, it will try to play the sound at the location of the script (which does not exist in the game world). Link to comment Share on other sites More sharing options...
Recommended Posts