Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
306 B
17 lines
306 B
Scriptname ItemWithSoudScript extends ObjectReference
|
|
{Playes a looping sound for items.}
|
|
|
|
import sound
|
|
|
|
sound property MySoundLoop auto
|
|
int soundInstance
|
|
|
|
Event onLoad()
|
|
; Sound on
|
|
soundInstance = MySoundLoop.play(self)
|
|
EndEvent
|
|
|
|
Event onUnLoad()
|
|
;Stop sound
|
|
StopInstance(soundInstance)
|
|
EndEvent
|
|
|