25 lines
1005 B
Plaintext
25 lines
1005 B
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://ce8bos77837mf"]
|
|
|
|
[ext_resource type="Script" path="res://sceen/people/peopleWalkFollow.gd" id="1_bcdcn"]
|
|
[ext_resource type="PackedScene" uid="uid://c6noskjp3ks4p" path="res://sceen/people/player.tscn" id="2_tl7k2"]
|
|
|
|
[node name="peopleWalkFollow" type="Node3D"]
|
|
script = ExtResource("1_bcdcn")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("2_tl7k2")]
|
|
|
|
[node name="Path3D" type="Path3D" parent="."]
|
|
|
|
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
|
|
loop = false
|
|
|
|
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="Path3D/PathFollow3D"]
|
|
remote_path = NodePath("../../../Player")
|
|
|
|
[node name="PathFollowTimer" type="Timer" parent="Path3D"]
|
|
wait_time = 0.05
|
|
|
|
[connection signal="AreaEnter" from="Player" to="." method="_on_player_area_enter"]
|
|
[connection signal="AreaExit" from="Player" to="." method="_on_player_area_exit"]
|
|
[connection signal="timeout" from="Path3D/PathFollowTimer" to="." method="_on_path_follow_timer_timeout"]
|