18 lines
306 B
Plaintext
18 lines
306 B
Plaintext
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
|