Show network Ping & start AI behaviour tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bp5ekvan8qsmc"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bp5ekvan8qsmc"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player/Hitable.gd" id="1_f1sho"]
|
||||
|
||||
@@ -10,9 +10,12 @@ material = SubResource("StandardMaterial3D_uw38t")
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_mfgnk"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_yvynv"]
|
||||
radius = 20.0
|
||||
|
||||
[node name="Enemy" type="CharacterBody3D"]
|
||||
collision_layer = 512
|
||||
collision_mask = 512
|
||||
collision_mask = 513
|
||||
script = ExtResource("1_f1sho")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
@@ -22,3 +25,14 @@ mesh = SubResource("CapsuleMesh_3ufk0")
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_mfgnk")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
collision_layer = 512
|
||||
collision_mask = 512
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("SphereShape3D_yvynv")
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
||||
[connection signal="body_exited" from="Area3D" to="." method="_on_area_3d_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user