Hello, I am building a game that uses the default First-Person Character Blueprint in my game. In the game, raptors chase the player and attacks. I want to make it so that when the raptor attacks, it’s instant kill. For the death of the player, I want to rotate the character pawn facing the raptor. I can add yaw, pitch and roll to the character, but I haven’t found a way to make the default First-Person Blueprint to rotate towards a specific object or character.
It’s a bit blurry, but in this picture the raptor is attacking the player, this is where I want the character to rotate from where ever his rotation is at the current moment, towards the raptor; and after the attack animation ends the screen goes to black.
Hey! I’ve been trying to do the same thing but for an NPC but it’s not working and I was wondering if you could help me. I added the same code to the NPC, but instead of “get player controller” I change it to “get controller”. However it doesn’t work, how can I make it work? Thanks in advance.
Thank you so much again! I had tried this but it didn’t work properly because I left the Interp Speed at 0 which made the brachiosaurus rotate instantly.
It’s not really an animation. It is constantly rotating towards Target Rotation. You could Gate the tick but that’s not usually necessary. Or are you talking about some other animation?
Can you show the script and the way you’re getting the Tree?
Nevermind, for some reason my blendspace plays the animations even when standing still, must have accidentally change a setting, guess I have another problem to solve…
Ok, I fixed the blendspace. The problem was that I messed it up in the first place because rotating the NPC set actor rotation doesn’t activate the rotation animation from the blendspace (What I mean by rotation animation is that the brachiosaurus literally has an animation when it rotates towards left and right). I tried changing the direction values but there is no way SetActorRotation activates the Rotating Brachiosaurus Animations
Hey there again, sorry to keep bothering you. I posted a new question for the rotation animation I was talking to you about, just wondering if you can once again help me with this. I posted the question here where I better Illustrate my new problem: https://answers.unrealengine.com/questions/970021/view.html