SlimeoosOdyssey/godot/cultist.tscn

39 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-08-20 13:31:07 -06:00
[gd_scene load_steps=7 format=3 uid="uid://e0s4phx2jiit"]
2023-08-19 11:04:45 -06:00
2023-08-20 00:00:17 -06:00
[ext_resource type="Script" path="res://cultist.gd" id="1_k6djk"]
[ext_resource type="PackedScene" uid="uid://c3q6fva1c1baa" path="res://Models/slime.tscn" id="2_004fn"]
2023-08-20 13:31:07 -06:00
[ext_resource type="AudioStream" uid="uid://cxadu5w3jwv0b" path="res://Sounds/evilslime.ogg" id="3_novm4"]
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_rypky"]
radius = 5.0
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_pa038"]
2023-08-20 13:31:07 -06:00
radius = 0.05
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_bmc5i"]
2023-08-20 13:31:07 -06:00
radius = 0.05
2023-08-19 11:04:45 -06:00
2023-08-20 00:00:17 -06:00
[node name="Cultist" type="CharacterBody3D"]
script = ExtResource("1_k6djk")
2023-08-19 11:04:45 -06:00
[node name="TargetRadius" type="Area3D" parent="."]
2023-08-19 11:04:45 -06:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="TargetRadius"]
shape = SubResource("SphereShape3D_rypky")
2023-08-20 00:00:17 -06:00
[node name="slime" parent="." instance=ExtResource("2_004fn")]
2023-08-20 00:00:17 -06:00
[node name="CollisionDetection" type="Area3D" parent="."]
[node name="collision_ range" type="CollisionShape3D" parent="CollisionDetection"]
shape = SubResource("SphereShape3D_pa038")
[node name="cultist_collision" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_bmc5i")
2023-08-20 00:00:17 -06:00
2023-08-20 13:31:07 -06:00
[node name="evilslime" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_novm4")
[connection signal="body_entered" from="TargetRadius" to="." method="_on_target_radius_body_entered"]
[connection signal="body_entered" from="CollisionDetection" to="." method="_on_collision_detection_body_entered"]