Jump to content

Can't get sound to play


Recommended Posts

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)

to

MySoundFX.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 Auto
Message Property NoTooth Auto
MiscObject Property Tooth Auto
ObjectReference Property MyMarker Auto
ObjectReference Property MyMarker2 Auto
ObjectReference Property MyMarker3 Auto
Sound Property MySoundFX Auto

Event OnActivate(ObjectReference akActionRef)
if (Game.GetPlayer().GetItemCount(Tooth) < 1)
NoTooth.show(); Shows message

elseif (Game.GetPlayer().GetItemCount(Tooth) > 0)
Int iButton = GreetMenu.Show(); Shows menu.
If iButton == 0
; do stuff
MySoundFX.Play(Self)
Utility.wait(1)
MyMarker.Disable()
MyMarker2.Disable()
Game.GetPlayer().RemoveItem(Tooth, 1)

elseIf iButton == 1
; do nothing

EndIf
EndIf

EndEvent

 

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...