9 lines
158 B
GDScript
9 lines
158 B
GDScript
class_name CanWaitCodition
|
|
extends ConditionLeaf
|
|
|
|
func tick(_actor, _blackboard):
|
|
var num = randi_range(0, 1)
|
|
if num == 0:
|
|
return SUCCESS
|
|
return FAILURE
|