Move actors in a level when hit

Hi there…

I am working on an archery project.

I would like a good way of moving actors in a level when I hit them with an arrow.

When I shoot the actor,
I would like the actor to move between 2 or more
target points in a level.

Let’s say there’s 4 target points…
Each time it is hit it moves once to next target point. Hit it again and it moves to next.
On the last hit it doesn’t move anymore.

Any ideas how to do this?
Thanks for any help

  • does each target actor have their own target locations?
  • do all targets share locations?
  • what would be the easiest way for you to create those target locations? Providing each actor has their own targets, and you want to set them up manually, I’d suggest adding a handful of arrow components to each actor, this would allow you to move them around visually

Thanks for the reply. I guess I would make an array of target points on the Platform, expose them, select them from the level, on hit move to next target point in the array based on an integer or something?

I just don’t know how to do the BP’s

1 Like

Consider the following:

  • I have this actor with variables that indicate the move to locations:

  • we can manipulate those vectors in the editor with gizmos:

  • in the same actor, there’s script that keeps track of the locations and moves the mesh around:

  • the result:

Would that work for you?

1 Like

@Everynone This is absolutely brilliant!
Thank you very much for this.

I have been at this all day, and didnt come anywhere close. I also had no idea of the shuffle node.
So, thank you very much for the help.

Much appreciated

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.