[gd_scene load_steps=3 format=2] [ext_resource path="res://Trigger.gd" type="Script" id=1] [sub_resource type="BoxShape" id=1] extents = Vector3( 1, 1, 0.3 ) [node name="Trigger" type="Spatial"] script = ExtResource( 1 ) [node name="Outside" type="Area" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.2 ) collision_layer = 128 collision_mask = 0 [node name="CollisionShape" type="CollisionShape" parent="Outside"] shape = SubResource( 1 ) [node name="Inside" type="Area" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2 ) collision_layer = 128 collision_mask = 0 [node name="CollisionShape" type="CollisionShape" parent="Inside"] shape = SubResource( 1 ) [connection signal="body_exited" from="Outside" to="." method="_on_Outside_body_exited"] [connection signal="body_exited" from="Inside" to="." method="_on_Inside_body_exited"]