3rd person camera
Posted: Sat Mar 24, 2007 10:19 am
Is it possible to make the 3rd person camera be able to rotate etc freely without rotating the player actor? (so you could look all around you and the camera would be fixed to your player but the player model itself would remain stationary:
here is my camera script
its in the scripts folder and then there is a pawn in the level that uses the script, ive looked at the commands list and nothing seems to be directly related to this, so I was wondering if anyone could think of a work around to get the desired affect,
(oh and the player is completely stationary so it wont be able to walk around so Isometric view is out of the question)
Anyhelp would really be appreciated
(oh and just so you know im using Juutises camera script from the nirhis game [and I asked permission in advance])
here is my camera script
Code: Select all
{
OFFSETY [75]
Spawn[ ()
{
Console(true);
Gravity(false);
SetNoCollision();
HideFromRadar(true);
BoxWidth(0);
BoxHeight(0);
LowLevel("Setup");
} ]
Setup[ ()
{
self.ThinkTime = 0;
self.yaw_speed = 10000;
self.pitch_speed = 10000;
AttachCamera();
PawnRender(false);
self.think = "idle";
} ]
idle[ ()
{
self.ThinkTime = 0;
if(GetEventState("crouch"))
{
if(OFFSETY > 40)
{
OFFSETY = OFFSETY - 5;
}
else
{
OFFSETY = 40;
}
}
else
{
if(OFFSETY < 75)
{
OFFSETY = OFFSETY + 5;
}
else
{
OFFSETY = 75;
}
}
PositionToPawn("player",0,OFFSETY,0,true,false);
self.ideal_yaw = self.player_yaw + 3.141592654;
ChangeYaw();
} ]
}
(oh and the player is completely stationary so it wont be able to walk around so Isometric view is out of the question)
Anyhelp would really be appreciated
(oh and just so you know im using Juutises camera script from the nirhis game [and I asked permission in advance])