Get Player Character gives you the possessed character. Since your other character isn’t possessed the moment you hit F it doesnt send input there. You need to find another way to get a reference for the other character and then use that to cast.
Well as i said you need to get a reference to that pawn but i need to know more about how you set things up. If you are looking at that other pawn when you hit F, for instance, you can use a trace and then use it’s hit actor result to cast to its BP. Or if that pawn is walking past a trigger you can use the overlap event to get a reference and then send that to player character BP. So yeah, the video will probably help you quicker than i will here.
Wow, that’s a nice 2 hours video did you watch it ? Do you know where I could jump to get what I need ?
I’m about to use Blueprint Interface, which could be better (in a matter of time) than watching the video.
I get what you are trying to do, i’m just trying to find the best way for you. So, if you have only 1(or just a couple of) those demons you can do something like this in your player character BP:
Drag from the Array Element pin and search for your custom event name, it will be connected automatically. Also dont forget to set your other demon pawn in Get All Actors of Class node.
I’m not sure I get your question. Tho, I can say there is only 1 demon (for the moment) and 1 pawn angle vision per demon.
I don’t know if that is simplier for you to understand, but here is anothing I would like to do :
I want to get the value of the PawnAngleVar which is in my Demon blueprint ( http://puu.sh/njX7v/16a64b63ad.png ). I would like to print it on my screen when I press F : http://puu.sh/njXeb/98b6759eb7.png
I see the logic you’re want me to use. I could workd yeah (for now, UE4 crashed), but I have a little problem : I can’t link the Array Element to the Target element. I’m still watching the video at the same time.
Ah yeah you’re right ! It’s working now ! Thanks a lot dude, you really rock ! I will still try to use a cast function so I can understand how it works.
Tho, thank you a lot !