Created Enemy to track player's last known location
This commit is contained in:
23
Assets/components/enemy.tscn
Normal file
23
Assets/components/enemy.tscn
Normal 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="."]
|
||||
Reference in New Issue
Block a user