boourdead Posted October 8, 2018 Posted October 8, 2018 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.
Guest Posted October 8, 2018 Posted October 8, 2018 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.)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.