Jump to content

Help with sound scripts (for a journal/book)


Allerai

Recommended Posts

Hi,

 

I've got some issues with a script to add sound (voice) to a journal when you open it. My script at the moment doesn't want to play it. No sound.

 

This is my script:

Scriptname VoiceJournal extends ObjectReference  

Actor Property PlayerRef Auto

Sound Property mySFX auto

Event OnOpen(ObjectReference akActionRef)

   If (AkActionRef == PlayerREF)
       
    MySFX.Play(self)
 
   EndIf
EndEvent

___

 

The property mySFX is a Sound Maker calling a Sound Descriptor with the following configuration:

 

Descriptor type: Standard

Category: AudioCategorySFX

Output Model: SOMMono01400

___

 

Could anyone of you good fellas help me with this? I tried with onActive and onOpen event.

I found the solution with Event OnEquipped(Actor akActor)
Edited by Allerai
Link to comment
Share on other sites

  • Recently Browsing   0 members

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