Camera Watch by ThomasFN29th Aug 2004 10:03
|
---|
Summary Give the correct parameters and the camera will act by third-person. Description Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com Rem Project: CameraWatch Rem Created: 04/08/2004 18:09:10 Rem ***** Main Source File ***** FUNCTION CameraWatch(ObjNum, Height, Distance, CamNum) Set Camera Range CamNum, 0, Distance + 1000 X# = Object Position X(ObjNum) Z# = Object Position Z(ObjNum) Y# = Object Position Y(ObjNum) Set Camera To Object Orientation CamNum, ObjNum Position Camera CamNum, X#, Y# + Height, Z# Move Camera CamNum, Distance * -1 Point Camera CamNum, X#, Y#, Z# ENDFUNCTION |