2023-06-05 08:00:14 -06:00
|
|
|
extends OmniLight3D
|
2023-01-01 02:23:56 -07:00
|
|
|
|
|
|
|
var active = false
|
|
|
|
|
|
|
|
func _ready():
|
2023-06-05 08:00:14 -06:00
|
|
|
var _err = GlobalCursorState.connect("set_camera_zone",Callable(self,"zone"))
|
2023-01-01 02:23:56 -07:00
|
|
|
visible = false
|
|
|
|
|
|
|
|
|
|
|
|
func zone(where: String):
|
|
|
|
if where != "camera_attic_inner":
|
|
|
|
$AnimationPlayer.stop()
|
|
|
|
active = false
|
|
|
|
visible = false
|
|
|
|
return
|
|
|
|
active = true
|
|
|
|
|
|
|
|
func _on_AnimationTree_motion_status(value):
|
|
|
|
if not active:
|
|
|
|
return
|
|
|
|
if value:
|
|
|
|
return
|
|
|
|
$AnimationPlayer.play("light_flicker")
|