Adjust pc facing without change the player view direction

Scripting, not in cutscene so that the PC turns around to face the player without the player view following it.

So, I an trying to get a character who just spawned in\m to face the player then do an action of lay down prone.

I have the lay down properly, but for aesthetics sake i would like the character to fall toward toward the players view perspective.

I am able to change the camera but the players perspective changes as well. That winds up with the same facing rather than not.

This is the script so far.

void Prone()
{
		object oPC = GetEnteringObject();
	
    if (GetIsPC(oPC))
    {
    	AssignCommand(oPC, SetCommandable(TRUE, oPC));

    	AssignCommand(oPC, ActionWait(0.5f));

    	AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 0.0f, 5.0f));
	}
}
1 Like

I’m sorry, I think I’m a bit thickheaded. I have read your post quite a few times now, but I still don’t quite understand what you mean here.

You’re talking about the PC facing the player? The player character facing the player?
Or do you mean an NPC facing the player?
And you’re not in a cutscene but you still use a static camera? Is that even possible? Do you mean you’re inside a conversation?
If you want the NPC or the PC to fall towards the camera (is that what you want, I don’t understand, sorry) then I believe you need a different animation, because if my memory serves me correctly, I think the default falling animation is that a character falls to the side or backwards. Maybe check Mixamo and see if there’s such an animation there.

I’m talking about the PC facing the player.

It is where the game starts, and the effect is that whilst face down the PC gets a bloodstained shirt.

Then stands ready to command, then steps into a conversation trigger (works right).

Ok, I’m still a bit at a loss of the situation, but to me it sounds like what I would have done is just do it as a cutscene and use static cameras. That way you can have the game face whatever you want.

Well, no. I am in the regular game view.

Making a cutscene wasn’t much more fruitful. Probably because I made one cutscene total in my tomb of horrors from 12 years ago. And it is really out of context from what I am trying to do.

1 Like

Well, then I’m sorry that I can’t help you as I can’t quite fathom/grasp the whole situation.

Maybe someone else here who’s much more clever than I am and has more experience with this kind of thing can help out.

2 Likes

Thanks andgalf

I think I will actually try a cut scene. I think more drama is possible as well. The circumstance bodes that true.

1 Like