camSetRelPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CAMSETRELPOS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CAMSETRELPOS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CAMSETRELPOS]]
[[Category:Scripting Commands ArmA|CAMSETRELPOS]]


| ofp |= Game name


<h2 style="color:#000066">'''''camera'' camSetRelPos ''position'''''</h2>
|1.00|= Game version


|arg= local |= Arguments in MP


'''Operand types:'''
|eff= local |= Effects in MP
____________________________________________________________________________________________


'''camera:''' [[Object]]
| Set the position of the given camera relative to its target set with [[camSetTarget]].Needs the call of [[camCommit]] to be conducted. |= Description
____________________________________________________________________________________________


'''position:''' [[Array]]
| camera'''camSetRelPos''' position |= Syntax


'''Type of returned value:'''
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1


[[Nothing]]
|p2= position: [[Position]] - relative position |= Parameter 2


'''Description:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_cam camSetTarget _car
_cam camSetRelPos [0,10,8]</pre> |= Example 1
____________________________________________________________________________________________


Set '''camera''' '''position''' relative to current position of current target (see [[camSetTarget]]).
| [[camSetPos]], [[fSetRelPos]] |= See also


Does not commit changes.
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Example:'''
<!-- Note Section END -->
</dl>


_camera '''camSetRelPos''' [10, 15, 5]<br>
<h3 style="display:none">Bottom Section</h3>
will place the _camera 10 metres to the right of the target, 15 metres directly in front of the target and 5 metres above the target.  Use negative numbers to place the camera behind or to the left of the target.
Old Notes (temporary):


'''Notes:''' The location of the camera will depend on the direction the target object is facing.
'''Notes:''' The location of the camera will depend on the direction the target object is facing.
The camera does not bank with the target (bug?).
The camera does not bank with the target (bug?).
[[Category:Scripting Commands|CAMSETRELPOS]]
[[Category:Scripting Commands OFP 1.96|CAMSETRELPOS]]
[[Category:Scripting Commands OFP 1.46|CAMSETRELPOS]]
[[Category:Scripting Commands ArmA|CAMSETRELPOS]]

Revision as of 22:36, 1 August 2006

Hover & click on the images for description

Description

Description:
Set the position of the given camera relative to its target set with camSetTarget.Needs the call of camCommit to be conducted.
Groups:
Uncategorised

Syntax

Syntax:
cameracamSetRelPos position
Parameters:
camera: Object - object of type "camera"
position: Position - relative position
Return Value:
Nothing

Examples

Example 1:
_cam camSetTarget _car
_cam camSetRelPos [0,10,8]

Additional Information

See also:
camSetPosfSetRelPos

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Old Notes (temporary):

Notes: The location of the camera will depend on the direction the target object is facing. The camera does not bank with the target (bug?).