very happy with idle script now

This commit is contained in:
derek
2025-04-30 13:04:52 -05:00
parent d9ab3a82a7
commit 6cc110016a
5 changed files with 39 additions and 40 deletions

View File

@@ -872,6 +872,7 @@ initial_state = NodePath("Idle")
script = ExtResource("7_cwyr0")
enemy = NodePath("../..")
move_speed = 1.5
turret_speed = 0.5
[node name="Stunned" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
script = ExtResource("8_wpql0")
@@ -968,11 +969,6 @@ draw_pass_1 = SubResource("PlaneMesh_eqd73")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00161432, 0.000886798, -0.0469466)
shape = SubResource("ConcavePolygonShape3D_kddmj")
[node name="TurretLookNext" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00161432, 1.62046, 0.00134204)
target_position = Vector3(0, 0, -50)
collision_mask = 5
[node name="LineOfSight" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00161432, 1.62046, 0.00134204)
top_level = true