3Do,
No worries mate, pop into the code archives and oh bother that - here:
Function SuperCam(cam,ent,cspeed#,dist#,hite#,xrot#,tilt#)
TFormPoint 0,hite#,-dist#,ent,0
cx#=(TFormedX()-EntityX(cam))*cspeed#
cy#=(TFormedY()-EntityY(cam))*cspeed#
cz#=(TFormedZ()-EntityZ(cam))*cspeed#
TranslateEntity cam,cx,cy ,cz
PointEntity cam,ent
RotateEntity cam,xrot#,EntityYaw(cam),tilt#
End Function
Function takes the following...
Camera handle
Entity you want to follow handle
Speed at which camera will follow the entity
The distance it will try to stay at (based on the entity named)
The height it will try to stay at (based on the entity named)
Xrotation of camera
Tilt of camera
Try these settings
SuperCam(Camera_Handle, Teapot_Handle, 0.01,0,0,0,0)
and alpha out the teapot first.
IPete2.
No worries mate, pop into the code archives and oh bother that - here:
Function SuperCam(cam,ent,cspeed#,dist#,hite#,xrot#,tilt#)
TFormPoint 0,hite#,-dist#,ent,0
cx#=(TFormedX()-EntityX(cam))*cspeed#
cy#=(TFormedY()-EntityY(cam))*cspeed#
cz#=(TFormedZ()-EntityZ(cam))*cspeed#
TranslateEntity cam,cx,cy ,cz
PointEntity cam,ent
RotateEntity cam,xrot#,EntityYaw(cam),tilt#
End Function
Function takes the following...
Camera handle
Entity you want to follow handle
Speed at which camera will follow the entity
The distance it will try to stay at (based on the entity named)
The height it will try to stay at (based on the entity named)
Xrotation of camera
Tilt of camera
Try these settings
SuperCam(Camera_Handle, Teapot_Handle, 0.01,0,0,0,0)
and alpha out the teapot first.
IPete2.