13 lines
194 B
GDScript3
13 lines
194 B
GDScript3
|
extends Area3D
|
||
|
|
||
|
signal trigger()
|
||
|
|
||
|
func _ready():
|
||
|
connect("body_entered", handle_body_entered)
|
||
|
|
||
|
func handle_body_entered(body: Node):
|
||
|
if body is StaticBody3D:
|
||
|
return
|
||
|
|
||
|
emit_signal("trigger")
|