war and murder
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dkjdt7uq3a4j3"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dkjdt7uq3a4j3"]
|
||||
|
||||
[ext_resource type="ArrayMesh" uid="uid://d3u564wle888o" path="res://Models/TestModels/Ness/nesspoly.obj" id="1_jhe4l"]
|
||||
[ext_resource type="Script" path="res://Scenes/TestEnemy.cs" id="1_m03um"]
|
||||
[ext_resource type="PackedScene" uid="uid://rlxnnw4yay7e" path="res://Scenes/EnemyBullet.tscn" id="2_h68e2"]
|
||||
[ext_resource type="Script" path="res://Scripts/FireAtPlayer.cs" id="3_dhmfs"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_eb41r"]
|
||||
radius = 1.0
|
||||
height = 3.5
|
||||
|
||||
[node name="TestEnemy" type="Node3D"]
|
||||
script = ExtResource("1_m03um")
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
collision_layer = 0
|
||||
@@ -17,6 +18,7 @@ gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 10
|
||||
contact_monitor = true
|
||||
script = ExtResource("1_m03um")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.51635, 0)
|
||||
@@ -27,4 +29,13 @@ transform = Transform3D(7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0)
|
||||
mesh = ExtResource("1_jhe4l")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[connection signal="body_entered" from="RigidBody3D" to="." method="OnHit"]
|
||||
[node name="Timer" type="Timer" parent="." node_paths=PackedStringArray("_enemy")]
|
||||
wait_time = 3.0
|
||||
autostart = true
|
||||
script = ExtResource("3_dhmfs")
|
||||
_enemy = NodePath("../RigidBody3D")
|
||||
_fireProjectile = ExtResource("2_h68e2")
|
||||
|
||||
[connection signal="body_entered" from="RigidBody3D" to="RigidBody3D" method="OnHit"]
|
||||
[connection signal="tree_exiting" from="RigidBody3D" to="Timer" method="OnDied"]
|
||||
[connection signal="timeout" from="Timer" to="Timer" method="OnFireAtPlayer"]
|
||||
|
||||
Reference in New Issue
Block a user