Is there a way to make it so when you change a hero, a certain action if performed?
Sure. Make an action where when Has Spawned(Event Player) you save the hero they chose in a player variable.
Make another action where Hero Of(Event Player) is not equal to that player variable, you carry out your ‘certain action’.
2 Likes
Thank you! Also do you know of a way to destroy all effects created by just a specific player?
You’d have to store each created effect in an array in a player variable using Last Created Entity, and then when you want to delete that set of effects, use a Loop to Destroy Effect each of them individually.
Don’t forget to set the player variable back to an empty array when you’re done or you might have problems later with giant arrays full of long-dead entity references.