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

What do I name it so that it ONLY targets FirstPerson view?
It doesn't matter what you name it.

Awesome, I got what I needed with

Code: [Select]
datablock PlayerData(PlayerTestArmor : PlayerStandardArmor)
{
minJetEnergy = 0;
jetEnergyDrain = 0;
canJet = 0;
cameramaxdist = 15;
cameramindist = 0;
maxlookangle = 0;
cameratilt = 1;
maxlookangle = 100;
minlookangle = 0;
cameraMaxFov = 90;
thirdpersononly = 1;
jumpForce = 0 * 0;
cameraVerticalOffset = 6;
cameraHorizontalOffset = 0;
maxlookangle = 0;
minlookangle = 0;

uiName = "Test Player";
showEnergyBar = false;
};

Thanks.


But I want to that specific datablock to target FIRSTPERSON only, I want to to IGNORE the other datablock.

But I want to that specific datablock to target FIRSTPERSON only, I want to to IGNORE the other datablock.
I repeat, the name of the datablock isn't what you're looking for. If you even bothered to look at previous posts, you would find what you need to do.

See, I want to be able to move the camera up and down in first person, but I DON'T want to be able to move the camera in thirdperson..

See, I want to be able to move the camera up and down in first person, but I DON'T want to be able to move the camera in thirdperson..
Then you would use two different datablocks, but you would not be able to use TAB to switch from first to third person.

Ok, how would I go about naming those two different datablocks?
« Last Edit: February 28, 2010, 04:17:01 AM by Butler »

Ok, how would I go about naming those two different datablocks?
Anything you want them to be.

Code: [Select]
I tried:
datablock Playerdata::FirstPerson(TopDownArmor : PlayerStandardArmor)
{
   maxlookangle = 10;
   minlookangle = 0;
};
console says error.

I'm not even sure what you even tried there.

If you want the name to be FirstPerson, put it where TopDownArmor is.

how do I register the fact that When I Right Click , it goes to first person?

how do I register the fact that When I Right Click , it goes to first person?
What.
Is that your default view change key?
If not, why bother 'changing' it to right click?

The only thing i can think of what it could be used for is for a aimed down sight for a weapon.

I'm creating a PlayerType with two different datablocks instead of the default one.

I'm creating a PlayerType with two different datablocks instead of the default one.
Why 2?

Becaus I want thirdperson view TopDown like Reg's and if I do that then you cna't move the camera at all, so, in the second datablock I will have FirstPerson View and you will be able to move the camera.