http://www.creationkit.com/Play_-_Sound
But not being a 'coder' kind of person, I'm hitting a wall and I'm hoping someone can enlighten me.
The Syntax:
int Function Play(ObjectReference akSource) native
Is meant to go into the header before any events fire?
and the example they give goes into an event? :
int instanceID = mySFX.play(self) ; play mySFX sound from my selfSound.SetInstanceVolume(instanceID, 0.5) ; play at half volume
So far it just throws me a 'variable mySFX is undefined. Which makes sense since it isn't defined - but where does it get defined in the header? Is it part of that Syntax line? the 'int Function play' part I've changed to 'int myFuncName play' and mySFX into myFuncName but that doesn't do anything and more importantly, where do I reference the actual sound file to play?