File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ class_name ConditionPlayerIsInRange
249
249
250
250
@export var player_detection_distance:int = 50
251
251
252
- func tick(actor:Node2D , _blackboard:BTBlackboard) -> int:
252
+ func tick(actor:Node , _blackboard:BTBlackboard) -> int:
253
253
var player_position:Vector2 = get_tree().get_nodes_in_group("player")[0].global_position
254
254
var actor_position:Vector2 = actor.global_position
255
255
var player_distance:float = actor_position.distance_to(player_position)
@@ -268,7 +268,7 @@ extends BTAction
268
268
class_name ActionWander
269
269
@icon("res://addons/yet_another_behavior_tree/src/Assets/Icons/btaction.png")
270
270
271
- func tick(actor:Node2D , blackboard:BTBlackboard) -> int:
271
+ func tick(actor:Node , blackboard:BTBlackboard) -> int:
272
272
var current_position:Vector2 = actor.global_position
273
273
var target_position:Vector2 = blackboard.get_data("wander_position")
274
274
if current_position.distance_to(target_position) < 5:
You can’t perform that action at this time.
0 commit comments