Meldewesen player visibility works with new Player
This commit is contained in:
parent
d2ee524f72
commit
f67b7e6361
@ -16,8 +16,9 @@ func _ready():
|
||||
|
||||
|
||||
func _on_body_entered_visibility(body: Node):
|
||||
Logger.trace("Meldewesen seeing %s" % [body])
|
||||
|
||||
if body.is_in_group("Player"):
|
||||
print("Seeing player!")
|
||||
Logger.info("Seeing player!")
|
||||
# TODO: Check if the Player is in an area where they shouldn't be
|
||||
|
||||
|
@ -4,7 +4,11 @@
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
|
||||
[node name="Player" type="KinematicBody"]
|
||||
[node name="Player" type="KinematicBody" groups=[
|
||||
"Player",
|
||||
]]
|
||||
collision_layer = 5
|
||||
collision_mask = 5
|
||||
script = ExtResource( 1 )
|
||||
body_nodepath = NodePath("Body")
|
||||
|
||||
|
@ -75,6 +75,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
||||
shape = SubResource( 7 )
|
||||
|
||||
[node name="PathNavigatorForKinematicBody" parent="." instance=ExtResource( 2 )]
|
||||
speed = 3.0
|
||||
body_nodepath = NodePath("Meldewesen")
|
||||
|
||||
[node name="Meldewesen" parent="PathNavigatorForKinematicBody" instance=ExtResource( 3 )]
|
||||
|
Loading…
x
Reference in New Issue
Block a user