godot-parkour/addons/qodot/game_definitions/fgd/solid_classes/trigger.gd

13 lines
194 B
GDScript3
Raw Permalink Normal View History

2024-02-22 19:56:13 +00:00
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")