Scriptname soundscript1
Sound property sound1 Auto
int instanceID
Event OnInit()
While(TRUE)
int time = Utility.RandomInt()
instanceID = sound1.play(self)
Sound.SetInstanceVolume(instanceID,1.0)
utility.Wait(time)
EndWhile
EndEvent
Sound property sound1 Auto
int instanceID
Event OnInit()
While(TRUE)
int time = Utility.RandomInt()
instanceID = sound1.play(self)
Sound.SetInstanceVolume(instanceID,1.0)
utility.Wait(time)
EndWhile
EndEvent
I have the sound1 in the Sound Marker and its includin g the original sound from the Sound Descriptor.
I get a compiler error and the message:
type missmatch on parameter 1 (did you forget a cast?)
that actually tells me, that sound1 isn't the right type for the play function. So i actually was looking, what types are used in the other scripts but it seems there is always a sound type generated like the one i used. So does somebody know what is wrong by this compling stuff?
Ok, i also get a second compile error by the Sound.SetInstanceVolume, but its the same Code i got from the Wiki and i think its because the instanceID is null because of the error.
http://www.creationkit.com/Play_-_Sound
And then i tried also:
Event OnActivate(ObjectRefernece akActionRef)
moddisposition player 100
EndEvent
moddisposition player 100
EndEvent
But this seems not to work by Skyrim. And there is also no explanation in the wiki about moddisposition
http://www.creationkit.com/ModDisposition
Empty Page :<
Hope somebody could help me by the problems. Thx ^^
PS: Is there also some kind of timerevent, so i don't need to use the while loop?

