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])