camSetRelPos

From Bohemia Interactive Community
Revision as of 17:59, 20 May 2006 by Bedges (talk | contribs)
Jump to navigation Jump to search


camera camSetRelPos position


Operand types:

camera: Object

position: Array

Type of returned value:

Nothing

Description:

Set camera position relative to current position of current target (see camSetTarget).

Does not commit changes.


Example:

_camera camSetRelPos [10, 15, 5]
will place the _camera 10 metres to the right of the target, 15 meters directly in front of the target and 5 meters above the target. Use negative numbers to place the camera behind or to the left of the target. Note that the location of the camera will depend on the direction the target object is facing.