diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-22 15:33:22 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-22 15:33:22 +0100 |
commit | e9b2e264f767da4e630a515ae3217f3966be9ce6 (patch) | |
tree | 3f7517104ed7061eb9be9e9d70b9abefa10cac80 /prefabs/enemy.tscn | |
parent | 5f6ba92130f55ec81f2336d488743c6ff2aeaf74 (diff) |
bsp_level_generator: Create navigation mesh
Also make enemy AI use nav mesh for finding player
Diffstat (limited to 'prefabs/enemy.tscn')
-rw-r--r-- | prefabs/enemy.tscn | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prefabs/enemy.tscn b/prefabs/enemy.tscn index 9ed692e..71e35f8 100644 --- a/prefabs/enemy.tscn +++ b/prefabs/enemy.tscn @@ -26,4 +26,6 @@ shape = SubResource("CapsuleShape3D_s5qw4") [node name="HitTimer" type="Timer" parent="."] wait_time = 0.2 +[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."] + [connection signal="timeout" from="HitTimer" to="." method="_on_hit_timer_timeout"] |