Reworked the AI Objectives

This commit is contained in:
Patrick_Pluto 2024-12-13 18:28:06 +01:00
parent 27964084ff
commit a6c9909f26
8 changed files with 31 additions and 11 deletions

View file

@ -24,3 +24,9 @@ avoidance_enabled = true
height = 2.0
[node name="Timer" type="Timer" parent="."]
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0)
pixel_size = 0.01
billboard = 1
no_depth_test = true

View file

@ -21,3 +21,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
[node name="Label" type="Label" parent="."]
offset_right = 40.0
offset_bottom = 23.0
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0)
pixel_size = 0.01
billboard = 1
no_depth_test = true
text = "SamplePlayer"

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bn60ywtwfn7bq"]
[ext_resource type="Script" path="res://scripts/maps/rest.gd" id="1_m76x3"]
[ext_resource type="Script" path="res://scripts/maps/objectives/objective.gd" id="1_m76x3"]
[node name="Rest" type="Node3D"]
script = ExtResource("1_m76x3")

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=9 format=3 uid="uid://cbyee7drds7qu"]
[ext_resource type="Script" path="res://scripts/maps/map.gd" id="1_4npcs"]
[ext_resource type="Script" path="res://scripts/maps/rest.gd" id="2_yv1d0"]
[ext_resource type="Script" path="res://scripts/maps/objectives/objective.gd" id="2_yv1d0"]
[ext_resource type="PackedScene" uid="uid://bsghm187n6ykx" path="res://scenes/objects/closet.tscn" id="2_yvpvm"]
[ext_resource type="PackedScene" uid="uid://cvnjpnvchvakj" path="res://scenes/entities/npc.tscn" id="3_x3gyc"]
@ -23,7 +23,6 @@ script = ExtResource("1_4npcs")
[node name="PlayerSpawn" type="Node3D" parent="."]
[node name="0" type="Node3D" parent="PlayerSpawn"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17, 3, 0)
[node name="1" type="Node3D" parent="PlayerSpawn"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 4, 0)
@ -55,7 +54,7 @@ environment = SubResource("Environment_pq0iv")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 10, 2)
[node name="Npc1" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 20, 40)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 25, 6, -33)
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
navigation_mesh = SubResource("NavigationMesh_hqhxb")