Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ local NewNode = BehaviorTree5.Task({
if object.i == 5 then
return SUCCESS
elseif object.i > 5 then
return FAIL
end

print("The task is still running...")
return RUNNING
return FAIL'
else
print("The task is still running...")
return RUNNING
end
end,



finish = function(object, status, ...)
object.i = nil
print("I'm done with the task! My outcome was: ")
Expand Down