Is there a way to make children check amongst themselves which one has been hit?

Hello! I am having some issues with some children of an interactable pawn.

I want the player to be able to click a pawn, go there and play a synced animation with the pawn. This works fine if its an animation with a finite runtime like say a jump or a wave, but if i want a looping animation and the player clicks another pawn, the last pawn the player interacted with is still just standing there animating. Is there a way to send out a signal of sorts when a pawn has been interacted with that they all can check “is it me?” and if not go back to idle? Or am i looking at this from the wrong angle?

Also, in one picture i say i want child 2 to go back to idle after interacting with child 2, this is a typo. I of course mean i want child 1 to go back to idle after child 2 is interacted with.

The arms are just being used for testing before i start making models, so please don’t mind them.

Thanks!






Hi,
in short.there’s an easiest way of doing this.
give the interact-able pawn a “stop interact” function which stops the animation and other current jobs.
and every time the player interacts with the pawn, first get all the pawns and for loop to call their stop function. And then at last interact with the trace hit one.

Oh my god i cant believe that never even occured to me. im gonna try this next time i sit down with the project, thanks!