Added a 3D check to FXCameraAttachScript
This commit is contained in:
parent
b24010ff81
commit
ec26c5d140
Binary file not shown.
@ -21,11 +21,11 @@ int Property timeLimit = 180 Auto
|
||||
|
||||
;===============================================
|
||||
|
||||
EVENT ONTRIGGERENTER(ObjectReference akActionRef)
|
||||
IF (akActionRef == getPlayer() as ObjectReference);new
|
||||
EVENT ONTRIGGERENTER(ObjectReference akActionRef)
|
||||
IF (akActionRef == getPlayer() as ObjectReference);new
|
||||
if(CameraAttachFX) ; Block added by USKP 1.2.6 because apparently not everything is using the default values.
|
||||
CameraAttachFX.Play(akActionRef, timeLimit)
|
||||
; ; debug.trace("Triggered by player")
|
||||
; ; debug.trace("Triggered by player")
|
||||
EndIf
|
||||
if (CameraAttachFX2)
|
||||
CameraAttachFX2.Play(akActionRef, timeLimit)
|
||||
@ -33,15 +33,15 @@ int Property timeLimit = 180 Auto
|
||||
;if (CrossfadeableISM)
|
||||
; CrossfadeableISM.ApplyCrossFade(2)
|
||||
;endif
|
||||
if (LoopSound)
|
||||
if LoopSound && Is3DLoaded()
|
||||
instanceID = LoopSound.Play(Self)
|
||||
endif
|
||||
;wait (27)
|
||||
endif ;new
|
||||
endif ;new
|
||||
;goToState ("reset")
|
||||
endEvent
|
||||
endEvent
|
||||
|
||||
EVENT OnTriggerLeave(ObjectReference akActionRef)
|
||||
EVENT OnTriggerLeave(ObjectReference akActionRef)
|
||||
IF (akActionRef == getPlayer() as ObjectReference)
|
||||
if(CameraAttachFX) ; Block added by USKP 1.2.1 because apparently not everything is using the default values.
|
||||
CameraAttachFX.Stop(akActionRef)
|
||||
@ -58,9 +58,9 @@ int Property timeLimit = 180 Auto
|
||||
endif
|
||||
goToState ("waiting")
|
||||
ENDIF
|
||||
ENDEVENT
|
||||
ENDEVENT
|
||||
|
||||
EVENT OnUnLoad()
|
||||
EVENT OnUnLoad()
|
||||
if(CameraAttachFX) ; Block added by USKP 1.2.1 because apparently not everything is using the default values.
|
||||
CameraAttachFX.Stop(GetPlayer())
|
||||
EndIf
|
||||
@ -75,4 +75,4 @@ int Property timeLimit = 180 Auto
|
||||
StopInstance(instanceID)
|
||||
endif
|
||||
goToState ("waiting")
|
||||
ENDEVENT
|
||||
ENDEVENT
|
||||
|
Loading…
Reference in New Issue
Block a user