Add basic npc entity script.

This commit is contained in:
2025-01-19 21:53:28 -06:00
parent 05481adc3a
commit 163c37ffe3
18 changed files with 173 additions and 84 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=7 format=3 uid="uid://dr4b2pmsknuhc"]
[gd_scene load_steps=8 format=3 uid="uid://dr4b2pmsknuhc"]
[ext_resource type="Script" path="res://scripts/Entities/TestNPCController.gd" id="1_61g2d"]
[ext_resource type="Script" path="res://scripts/Entities/BasicNPCEntity.gd" id="1_1muh7"]
[ext_resource type="Shader" path="res://shaders/NPC Shader.gdshader" id="1_xgcv1"]
[ext_resource type="Script" path="res://scripts/Cutscene/TestCutscene.gd" id="2_jwvuu"]
[ext_resource type="Texture2D" uid="uid://boa4hvwyoslv0" path="res://textures/characters/base_male.png" id="3_20w6p"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw1sy"]
@@ -18,7 +19,9 @@ shader_parameter/direction = 1
shader_parameter/npcTexture = ExtResource("3_20w6p")
[node name="TestNpc" type="CharacterBody3D"]
script = ExtResource("1_61g2d")
script = ExtResource("1_1muh7")
interactType = 1
interactCutscene = ExtResource("2_jwvuu")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.126485)