Background for Skyrim SE
Member of the DbSkseFunctions script
boolfunctionSetSoundInstanceSource(intinstanceID, ObjectReferenceref)NativeGlobal

Description

Documentation Comment

set the sound source for the currently playing soundId to the passed in ref.
this function will only work for sounds playing from PlaySound or PlaySoundDescriptor from this script
I also found a strange bug. If the sound's source is the player and the player is in first person, this function will fail to set the ref as the new source.
If however the player is in third person, this function will succeed in setting the ref as the new source for the sound instanceID


Parameters

  1. intinstanceID

  2. ObjectReferenceref


Examples

Auto-Generated Example

int myInt__instanceID
ObjectReference myObjectReference__ref

bool returnedValue = DbSkseFunctions.SetSoundInstanceSource(myInt__instanceID, myObjectReference__ref)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.