give it a script who you can zoom in with the cam1stperson?
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
Author Topic: cam1stperson (Read 1078 times)
umm... i think am gonna try this.... i add cam 1 person and a camchase with hidden skinmesh.... il try it
jestermon
Add this script as well as the normal "Zoom with camera" script, and let the chasecam do the looking and zooming for you, the 1st Person cam is then just the place holder for the chasecam.
bool done = false;
void Main()
{
int CAM1 = OBJ_0; //1st person camera
int CAM3 = OBJ_22; //chasecam
Vector3 camLocation;
Quaternion camOnientation;
iObjectLocation(CAM1,camLocation);
iObjectOrientation(CAM1,camOrientation);
iObjectLocationSet(CAM3,camLocation);
iObjectOrientationSet(CAM3,camOrientation);
if(!done){
iObjectHide(CAM1);
iObjectShow(CAM3);
done = true;
}
}
Not tested, just typed on the fly.. should work in principle.
bool done = false;
void Main()
{
int CAM1 = OBJ_0; //1st person camera
int CAM3 = OBJ_22; //chasecam
Vector3 camLocation;
Quaternion camOnientation;
iObjectLocation(CAM1,camLocation);
iObjectOrientation(CAM1,camOrientation);
iObjectLocationSet(CAM3,camLocation);
iObjectOrientationSet(CAM3,camOrientation);
if(!done){
iObjectHide(CAM1);
iObjectShow(CAM3);
done = true;
}
}
Not tested, just typed on the fly.. should work in principle.
jestermon
Very nice solution Nasa. Just linking the chase camera to the 1st person camera, and setting the follow and rotate to a value of 1... simple, but clever, and only the zoom script needed. Sometime the simple solutions are the best. Kudos to you.
Pages: [1]