camSetRelPos: Difference between revisions
Jump to navigation
Jump to search
HateR Kint (talk | contribs) No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= local |= Arguments in MP | |||
|eff= local |= Effects in MP | |||
____________________________________________________________________________________________ | |||
| Set the position of the given camera relative to its target set with [[camSetTarget]].Needs the call of [[camCommit]] to be conducted. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | camera'''camSetRelPos''' position |= Syntax | ||
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1 | |||
[[ | |p2= position: [[Position]] - relative position |= Parameter 2 | ||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_cam camSetTarget _car | |||
_cam camSetRelPos [0,10,8]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[camSetPos]], [[fSetRelPos]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
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
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?).