Hi @CHARLES_CRAWFORD.
The problem here is that you’re trying to use the .on(‘eventType’, eventHandler) function with hero. Unfortunately that doesn’t work so you may have to just write your code for the hero in one while True loop separate from any function.
I hope this helps
Danny