Jump to content

Photo

Help with sound scripts (for a journal/book)

script sound journal book

  • Please log in to reply
No replies to this topic

#1
Allerai

Allerai

    Stranger

  • Supporter
  • Pip
  • 6 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, 27 February 2020 - 12:33 AM.






Also tagged with one or more of these keywords: script, sound, journal, book

Page loaded in: 1.152 seconds