update
This commit is contained in:
@@ -9,12 +9,12 @@ func tick(actor: Node, blackboard: Blackboard) -> int:
|
||||
if actor.action_points <= 0:
|
||||
return FAILURE
|
||||
|
||||
if not actor.is_bot and not actor.is_in_group("Bots"):
|
||||
if not actor.is_bot == true and not actor.is_in_group("Bots"):
|
||||
return FAILURE
|
||||
|
||||
# Execute movement
|
||||
if actor.is_within_movement_range(target_pos):
|
||||
if actor.is_bot:
|
||||
if actor.is_bot == true:
|
||||
var path = actor.enhanced_gridmap.find_path(
|
||||
Vector2(actor.current_position),
|
||||
Vector2(target_pos),
|
||||
|
||||
Reference in New Issue
Block a user