OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kymandro on 06 Feb 2005, 20:18:46
-
Hey Is there any way that when you go into camra mode if there can be a button that you press on the camra thing that turns camra mode off. i have seen it befor in the satalite script thing in the editors depot. ive never made a camra script so i have absolutly no idea how to do this
:-[
-
Basinc Command of a Camera Script
To create the camera:
_cam = "camera" camCreate [0,0,0]
_cam cameraEffect ["internal","back"]
To set a target
_cam setTarget targetName
To Change position of camera relative to target
_cam camSetRelPos [x,y,z]
note: change x y z to whichever
Change zoom
_cam camSetFOV 1.0
note: the lower the number the more zoomed in the camera is. decimals allowed.
Set changes over the stated number of seconds.
_cam camCommit 0
to wait a period of time
~5
note: change number to whatever
to delete a camera
_cam cameraEffect ["terminate","back"]
camDestroy _cam
Play around with these to see their effects. You'll get hand off it soon enough.