35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://e0s4phx2jiit"]
|
|
|
|
[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"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_rypky"]
|
|
radius = 5.0
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_pa038"]
|
|
radius = 3.0
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_bmc5i"]
|
|
radius = 0.3
|
|
|
|
[node name="Cultist" type="CharacterBody3D"]
|
|
script = ExtResource("1_k6djk")
|
|
|
|
[node name="TargetRadius" type="Area3D" parent="."]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TargetRadius"]
|
|
shape = SubResource("SphereShape3D_rypky")
|
|
|
|
[node name="slime" parent="." instance=ExtResource("2_004fn")]
|
|
|
|
[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")
|
|
|
|
[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"]
|