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.
22 lines
479 B
22 lines
479 B
Scriptname _00E_PlaySoundOnTriggerEnterScript extends ObjectReference
|
|
|
|
ObjectReference Property Source Auto
|
|
Sound Property SoundToPlay Auto
|
|
ObjectReference Property PlayerREF Auto
|
|
int doOnce
|
|
bool Property ApplyIMOD Auto
|
|
ImageSpaceModifier Property IMODToApply Auto
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if akActionRef == PlayerREF && doOnce == 0
|
|
if ApplyIMOD == true
|
|
IMODToApply.Apply()
|
|
endif
|
|
SoundToPlay.Play(Source)
|
|
doOnce = 1
|
|
else
|
|
return
|
|
endif
|
|
|
|
EndEvent |