0 votes

How can i transport the area_3D position in a script ?`

extends Spatial

onready var camera =$Camerafirstperson/Camera#yust a camera
onready var camerafollow =$Cameratarget3D/Camerafollow#camera with springaram
onready var area
touch =$Interaction_action#area3d

var monument_touch = false

func _ready():
pass

func process(delta):
if monument
touch == true:
if Input.isactionpressed("Interact"):
get
tree().changescene("res://Scenes/GameOverScreen.tscn")
Input.set
mousemode(Input.MOUSEMODE_VISIBLE)

func input(event):
if Input.is
actionpressed("playerswitch"):
if camerafollow.iscurrent():
camerafollow.clearcurrent(true)
elif camera.iscurrent():
camera.clear
current(true)

func onPlayertimercoreGameOver():#in here i need to add areatouch to disapere
if camera
follow.iscurrent():
camera
follow.clear_current(true)
pass

func onAreamonumentareaentered(area):
if area.get
name() == "Interactionaction":
monument
touch = true

Godot version Godot Engine v3.3.4
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.