Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CooldownDecorator and DelayDecorator never call after_run method of their child #320

Open
NectoT opened this issue Mar 11, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@NectoT
Copy link

NectoT commented Mar 11, 2024

Godot version: 4.2.1

To Reproduce
Steps to reproduce the behavior:

  1. Create an empty scene with BeehaveTree as root node
  2. Add DelayDecorator or CooldownDecorator as its child
  3. Add ActionLeaf as decorator's child
  4. Extend the ActionLeaf script with the following code:
extends ActionLeaf

func tick(actor: Node, blackboard: Blackboard) -> int:
	return SUCCESS

func after_run(actor: Node, blackboard: Blackboard) -> void:
	print('I finished running')

Expected behavior
'I finished running' message printing out in the output every tick.

Actual behaviour
No message is being printed out.

@NectoT NectoT added the 🐛 bug Something isn't working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant