cameraEffect: Difference between revisions
Jump to navigation
Jump to search
mNo 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 | |||
____________________________________________________________________________________________ | |||
| 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 | |||
____________________________________________________________________________________________ | |||
''' | | camera'''''''''cameraEffect''' [type, position] |= Syntax | ||
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1 | |||
[[ | |p2= type: [[String]] - the effect type. One of "Internal", "External", "Fixed", "FixedWithZoom" and "Terminate" |= Parameter 2 | ||
|p3= position: [[String]] - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used) |= Parameter 3 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_cam cameraEffect ["internal", "BACK"]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[switchCamera]] |= 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> | |||
[[Category:Scripting Commands|CAMERAEFFECT]] | |||
[[Category:Scripting Commands OFP 1.96|CAMERAEFFECT]] | |||
[[Category:Scripting Commands OFP 1.46|CAMERAEFFECT]] | |||
[[Category:Scripting Commands ArmA|CAMERAEFFECT]] |
Revision as of 22:32, 1 August 2006
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.
- Groups:
- Uncategorised
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
- See also:
- switchCamera
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