Home   Help Search Login Register  

Author Topic: Tunring a camra off and on as you please  (Read 456 times)

0 Members and 1 Guest are viewing this topic.

kymandro

  • Guest
Tunring a camra off and on as you please
« 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

 :-[

Offline XCess

  • Former Staff
  • ****
Re:Tunring a camra off and on as you please
« Reply #1 on: 06 Feb 2005, 21:59:52 »
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.
« Last Edit: 06 Feb 2005, 22:05:10 by XCess »