Jump to content

Playing sounds from sexlab


Recommended Posts

Posted

Im trying to trigger a specific sound so far I got 

 

Sound property SexLabVoiceFemale01Hot auto

 

Function Sound()
    SexLabVoiceFemale01Hot.Play(self)
    return
endfunction

 

I am assuming creation kit already has these sound registered.

Posted

They are registered as SoundDefinition and SoundMarker (both are required) and you play them just like you wrote in the script.

The only error I see is that the parameter of "play" is "where" the sound should play.

"Self" can be not the right item (it will be the object where the script is attached, so it may fail to play if it is not a 3D object in the world (Actor, ObjectReference, ReferenceAlias, etc.)

 

Also, the "play" function returns an index. You should use it to stop the sound when done. (In case of looping sounds.)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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