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