fixed player leaving bounds check
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://jdwpc622vmok"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://jdwpc622vmok"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bkii8jwf0k7tq" path="res://scripts/LevelManager.gd" id="1_1bnbi"]
|
||||
[ext_resource type="Resource" uid="uid://bxcxqt7rmfvdw" path="res://GameModes/hubworld.tres" id="2_62iy8"]
|
||||
@@ -19,6 +19,10 @@
|
||||
[ext_resource type="PackedScene" uid="uid://c67yfijknmx2m" path="res://assets/revolver2_pickup.tscn" id="16_ipgnf"]
|
||||
[ext_resource type="PackedScene" uid="uid://dyu46bns8mesv" path="res://assets/mac10_pickup.tscn" id="17_u30rd"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1xw80jkg3reb" path="res://assets/target_1.tscn" id="19_sx5wx"]
|
||||
[ext_resource type="Script" uid="uid://bdxonkxnmxe6n" path="res://scripts/level_bounds.gd" id="20_vf4a6"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_141ag"]
|
||||
size = Vector3(80, 80, 80)
|
||||
|
||||
[node name="HUB_1" type="Node3D" groups=["hub_level"]]
|
||||
script = ExtResource("1_1bnbi")
|
||||
@@ -251,3 +255,14 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.4249, 3.22414, 9.56468)
|
||||
|
||||
[node name="TARGET 2" parent="." instance=ExtResource("19_sx5wx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.09968, 3.22414, -6.79385)
|
||||
|
||||
[node name="LEVEL BOUNDS" type="Area3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -18.8287, 0)
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
script = ExtResource("20_vf4a6")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="LEVEL BOUNDS"]
|
||||
shape = SubResource("BoxShape3D_141ag")
|
||||
|
||||
[connection signal="body_exited" from="LEVEL BOUNDS" to="LEVEL BOUNDS" method="_on_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user