Difference between revisions of "cameraEffect"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 1: Line 1:
[[Category:Scripting Commands|CAMERAEFFECT]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CAMERAEFFECT]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CAMERAEFFECT]]
 
[[Category:Scripting Commands ArmA|CAMERAEFFECT]]
 
  
 +
| ofp |= Game name
  
<h2 style="color:#000066">'''''camera'' cameraEffect ''effect'''''</h2>
+
|1.00|= Game version
  
 +
|arg= local |= Arguments in MP
  
'''Operand types:'''
+
|eff= local |= Effects in MP
 +
____________________________________________________________________________________________
  
'''camera:''' [[Object]]
+
| Switch to the given camera or object with the given effect. If you want to switch the screen directly to the first-person, aiming, third-person or group view of an object, use [[switchCamera]] instead.The effect type "Terminate" is used to exit the current camera view and switch back to the player's view.Needs the call of [[camCommit]] to be conducted. |= Description
 +
____________________________________________________________________________________________
  
'''effect:''' [[Array]]
+
| camera'''''''''cameraEffect''' [type, position] |= Syntax
  
'''Type of returned value:'''
+
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1
  
[[Nothing]]
+
|p2= type: [[String]] - the effect type. One of "Internal", "External", "Fixed", "FixedWithZoom" and "Terminate" |= Parameter 2
  
'''Description:'''
+
|p3= position: [[String]] - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used) |= Parameter 3
  
Switch camera to given vehicle '''camera'''.
+
| [[Nothing]] |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>_cam cameraEffect ["internal", "BACK"]</pre> |= Example 1
 +
____________________________________________________________________________________________
  
Format of '''effect''' is '''''[name, position]'''''.
+
| [[switchCamera]] |= See also
  
'''Name''' is one of:
+
}}
  
* '''"Internal"'''
+
<h3 style="display:none">Notes</h3>
* '''"External"'''
+
<dl class="command_description">
* '''"Fixed"'''
+
<!-- Note Section BEGIN -->
* '''"Fixed With Zoom"'''
 
  
'''Position''' is one of:
+
<!-- Note Section END -->
 +
</dl>
  
* '''"TOP"'''
+
<h3 style="display:none">Bottom Section</h3>
* '''"LEFT"'''
 
* '''"RIGHT"'''
 
* '''"FRONT"'''
 
* '''"BACK"'''  ('''"BACK"''' is normally used)
 
  
 
+
[[Category:Scripting Commands|CAMERAEFFECT]]
'''Example:'''
+
[[Category:Scripting Commands OFP 1.96|CAMERAEFFECT]]
 
+
[[Category:Scripting Commands OFP 1.46|CAMERAEFFECT]]
_camera '''cameraEffect''' ['''"External"''', '''"Back"''']
+
[[Category:Scripting Commands ArmA|CAMERAEFFECT]]

Revision as of 22:32, 1 August 2006

Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Switch to the given camera or object with the given effect. If you want to switch the screen directly to the first-person, aiming, third-person or group view of an object, use switchCamera instead.The effect type "Terminate" is used to exit the current camera view and switch back to the player's view.Needs the call of camCommit to be conducted.

Syntax

Syntax:
camera''''cameraEffect [type, position]
Parameters:
camera: Object - object of type "camera"
type: String - the effect type. One of "Internal", "External", "Fixed", "FixedWithZoom" and "Terminate"
position: String - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used)
Return Value:
Nothing

Examples

Example 1:
_cam cameraEffect ["internal", "BACK"]

Additional Information

Multiplayer:
-
See also:
switchCamera

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section