BugRandom.tscn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [gd_scene load_steps=5 format=3 uid="uid://cyim4ocdllgyw"]
  2. [ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_pso1k"]
  3. [ext_resource type="Script" path="res://entities/enemies/BugRandom.gd" id="2_d0jwv"]
  4. [ext_resource type="ArrayMesh" uid="uid://2sf4rb1nj2re" path="res://entities/enemies/models/enemy_bug.obj" id="3_6xf8k"]
  5. [ext_resource type="Material" uid="uid://kleey55j2ipm" path="res://entities/enemies/bugrandom.material" id="4_00str"]
  6. [node name="BugRandom" groups=["enemy"] instance=ExtResource("1_pso1k")]
  7. collision_layer = 32
  8. collision_mask = 5
  9. script = ExtResource("2_d0jwv")
  10. min_idle_time = 0.1
  11. max_idle_time = 0.8
  12. step_time = 0.2
  13. enable_rotation = true
  14. [node name="StaticMesh" parent="RotationPoint" index="1"]
  15. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  16. mesh = ExtResource("3_6xf8k")
  17. surface_material_override/0 = ExtResource("4_00str")
  18. [node name="PlacementProtectionArea" parent="RotationPoint" index="2"]
  19. monitorable = true
  20. [node name="RayCastFront" parent="RC_Holder" index="0"]
  21. collision_mask = 103
  22. [node name="IdleTimer" type="Timer" parent="." index="6"]
  23. wait_time = 0.1
  24. one_shot = true
  25. [connection signal="timeout" from="IdleTimer" to="." method="_on_IdleTimer_timeout"]
  26. [editable path="RC_Holder"]