Bug.tscn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [gd_scene load_steps=5 format=3 uid="uid://3ccxm6ejer2u"]
  2. [ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_1e3wt"]
  3. [ext_resource type="Script" path="res://entities/enemies/Bug.gd" id="2_dk0rn"]
  4. [ext_resource type="ArrayMesh" uid="uid://2sf4rb1nj2re" path="res://entities/enemies/models/enemy_bug.obj" id="3_ctx12"]
  5. [ext_resource type="Material" uid="uid://cbbqb3y27fxms" path="res://entities/enemies/bug.material" id="4_xiqkm"]
  6. [node name="Bug" groups=["enemy"] instance=ExtResource("1_1e3wt")]
  7. collision_layer = 32
  8. collision_mask = 5
  9. script = ExtResource("2_dk0rn")
  10. min_idle_time = 0.1
  11. max_idle_time = 0.1
  12. start_direction = 0
  13. can_push = false
  14. step_time = 0.25
  15. enable_rotation = true
  16. [node name="StaticMesh" parent="RotationPoint" index="1"]
  17. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  18. mesh = ExtResource("3_ctx12")
  19. surface_material_override/0 = ExtResource("4_xiqkm")
  20. [node name="PlacementProtectionArea" parent="RotationPoint" index="2"]
  21. monitorable = true
  22. [node name="DetectionArea" parent="." index="3"]
  23. collision_layer = 32
  24. [node name="RayCastFront" parent="RC_Holder" index="0"]
  25. collision_mask = 103
  26. [node name="IdleTimer" type="Timer" parent="." index="6"]
  27. wait_time = 0.1
  28. one_shot = true
  29. [connection signal="timeout" from="IdleTimer" to="." method="_on_IdleTimer_timeout"]
  30. [editable path="RC_Holder"]