Created Enemy to track player's last known location

This commit is contained in:
Willow Behar
2024-05-10 11:25:15 -05:00
parent cbb3760380
commit 300a90af9c
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,23 @@
[gd_scene load_steps=5 format=3 uid="uid://cadrciw8ywini"]
[ext_resource type="Script" path="res://Assets/scripts/Enemy.gd" id="1_fdjbh"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wwg7y"]
albedo_color = Color(1, 0, 0, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_fhbi7"]
material = SubResource("StandardMaterial3D_wwg7y")
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kerfs"]
[node name="Enemy" type="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.00193, 0)
script = ExtResource("1_fdjbh")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("CapsuleMesh_fhbi7")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_kerfs")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]