Getting mad with this (simple animation)

Hi there! total noob here…

Im trying to get the following.

My NPC stands idle (idle animation). If i enter a trigger box around him, then he salutes me… and hes back to idle animation.
Im trying this with an animation BP, where i set up the States for the animations like this:

So first she is idle. Then i created a variable called “isinside?”. If i chek it as yes, then she salutes(salute). After a time she makes other animation (idlewait) and after a time she returns to the initial idle state.
If i check the “isinside” box at the left, she is doing great.

BUT THEN:
I dont know how to combine the triggerbox with the “isinside” variable.
Y try to do it inside other BP but cant make it. Like this:

I always get “target” error thing.

I have tryied all… watched tutos, and i have read about blueprints communications and interface etc… with no luck; it seems i am not able to understand how is this working.

Any idea please¿?¿

Also, on my ANIM BP, in the eventgraph i set it this way (i cant understand mucho of it, but i saw it in a tutorial and its working… at least when i click on the “isinside” variable on the UI.):

Thank you in advance.

Hey tukor :slight_smile:
You need to have a reference to your Animation Blueprint to call “Set Is Inside?”.
Target should be this reference.
You should get this Reference from your Skeletal Mesh by using the GetAnimInstance Node.
After that you have to cast the Value which you get to your Animation Blueprint Class and then Set your “IsInsider” Variable :slight_smile:

Good Luck

It seems that my last answer to my post didnt made it, so ill try again.

i was saying that i thank you a lot for your Help. But the thing is i cant understand the steps i must do.
im able to get a "get anim instance"node in my external Bp (second screenshot), with an already “mesh” item docket to target and an empty “return value”. But nothing more…

I cant understand how it works 8/

I tryied this in my character BP; it compiles ok, but not working. When i enter the triggerbox nothing happens.

Hey tukor,
The Picture Looks fine.
I think you have to call “Montage Play” from your Anim BP now and let your “Set Is Inside?” Connect to it.

I hope this helps.

Hey !
I did that and now its working!!!

Thank you A LOT for your help; you gave me some clues that helped a lot. You are a Heroe for me now hehe!

Seriously; a big THANKS

Hey tukor. No problem.
I’m glad I could help you :slight_smile:

Good Luck and have fun :wink: