I am making a tower defense game, and the foundation is a template I found online.
The wave enemies are Pawns and I was able to configure animation blueprints that keep them walking and then a death animation when hp <= 0.
My issues is I am now trying to make the attack towers, and the tower parent from the template is configured as an actor. From what I am finding online actors cannot reference variables that exist in pawns?
In my animation blueprint for the towers (I am using paragon characters as towers) I want them “Idle” when no enemy is in range and looping “Attack1” when enemy is in range. I have tried many things I found online but to no avail.
What is the best course of action for my desired outcome?
From what I am finding online actors
cannot reference variables that exist
in pawns?
if it does not inherit from pawn, then it can’t access any functionality of pawn. You can just reparent your tower parent to pawn though if you need that.
In my animation blueprint for the
towers (I am using paragon characters
as towers) I want them “Idle” when no
enemy is in range and looping
“Attack1” when enemy is in range. I
have tried many things I found online
but to no avail.
State machine with two states, call them something like “Idle” and “Attack1”, switch between them based on enemy is in range boolean. Where exactly is your problem there (image of code of what you already have and what your problem there is could be helpful) ?