bovido/scripts/enemy/behavior_tree/can_wait_condition.gd
Mathilde Grapin e0633efcbe Play ball with the enemy
Enemy can return the ball to the player
2023-06-27 21:25:32 +02:00

12 lines
207 B
GDScript

class_name CanWaitCodition
extends ConditionLeaf
func tick(actor, _blackboard):
if actor.next_target != null:
return FAILURE
var num = randi_range(0, 1)
if num == 1:
return FAILURE
return SUCCESS