Author Topic: Change player look direction for player type [Resolved]  (Read 2824 times)

I'm trying to make a player type where the camera is above the player like in the Top Down Player, but slightly angled back, with the player still looking forward. Is this possible? Right now I have the camera angle right, but the player looks straight down.


What I am getting



What I want


Both of the things you suggested unlocked the camera and allowed it to move freely in at least one direction, so I need other suggestions.

Cameratilt at 0.7 and verticaloffset at 6 looks like what you wanted.

It's very close, but the player still has up/down control of the camera. I want the camera fixed to the player.

It's very close, but the player still has up/down control of the camera. I want the camera fixed to the player.
Oh okay. Well the only way you can pull that off is if you don't allow them to look up or down at all.


Looking into it, one second.

maxlookangle = 0
minlookangle = 0

Hey Chrono, is there a way for a FirstPerson datablock and a ThirdPerson Datablock?

Hey Chrono, is there a way for a FirstPerson datablock and a ThirdPerson Datablock?
Yes, no matter which way you mean it.
By default, you can already switch between first person and third person on one datablock.
If you meant changing datablock when you press a certain button, or some other cause, where one is first and the other is third, then yes this is also possible, however not with the toggle third person view button.

No i meant in the script.. GAH.. is this wrong?
Code: [Select]
datablock PlayerData(TopDownArmor : PlayerStandardArmor)
{
   cameramaxdist = 5;
   cameraVerticalOffset = 10;
   cameraHorizontalOffset = 0;
   cameraTilt = -5;
   maxfreelookangle = 0;
   maxlookangle = 0;
   minlookangle = 0;
   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;

   uiName = "TopDown";
   canRide = true;
   showEnergyBar = false;

   runSurfaceAngle  = 55;
   jumpSurfaceAngle = 55;
   isSurvivor = 1;
};

datablock Playerdata::FirstPerson(TopDownArmor : PlayerStandardArmor)
{
   maxlookangle = 10;
   minlookangle = 0;
};


What do I name this so that it only targets Third Person view?
Code: [Select]
datablock PlayerData(TopDownArmor : PlayerStandardArmor)

It doesn't matter what you name it.

What do I name it so that it ONLY targets FirstPerson view?