bovido/scripts/enemy/behavior_tree/can_wait_condition.gd

12 lines
207 B
GDScript3
Raw Normal View History

2023-06-12 17:58:06 +02:00
class_name CanWaitCodition
extends ConditionLeaf
func tick(actor, _blackboard):
if actor.next_target != null:
return FAILURE
2023-06-12 17:58:06 +02:00
var num = randi_range(0, 1)
if num == 1:
return FAILURE
return SUCCESS