setCameraEffect: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|game1= | |game1= ofpe | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= | |game2= arma1 | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma2oa | |game3= arma2 | ||
| | |||
|version3= 1.00 | |||
|game4= arma2oa | |||
|version4= 1.51 | |||
|gr1= Camera Control | |gr1= Camera Control | ||
|descr= | |descr= Applies an effect to the current camera of the player. | ||
|s1= triggerOrWaypoint [[setCameraEffect]] [type, position] | |||
|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]] | |||
|p2= type: [[String]] - Effect type (a subclass of CfgCameraEffects.Array) | |||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
! | ! Effect | ||
! | ! Position | ||
{{!}}- | {{!}}- | ||
{{!}} style="vertical-align: top" {{!}} | {{!}} style="vertical-align: top" {{!}} | ||
Line 55: | Line 65: | ||
{{!}}} | {{!}}} | ||
| | |p3= position: [[String]] - Relative position | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>myTrigger [[setCameraEffect]] ["ZoomIn", "FRONT"];</code> | |x1= <code>myTrigger [[setCameraEffect]] ["ZoomIn", "FRONT"];</code> | ||
|x2= <code>_waypoint1 [[setCameraEffect]] ["FIXED", "RIGHT TOP"];</code> | |x2= <code>_waypoint1 [[setCameraEffect]] ["FIXED", "RIGHT TOP"];</code> | ||
|seealso= [[cameraEffect]] | |seealso= [[cameraEffect]] | ||
}} | }} | ||
Revision as of 15:19, 15 March 2021
Description
- Description:
- Applies an effect to the current camera of the player.
- Groups:
- Camera Control
Syntax
- Syntax:
- triggerOrWaypoint setCameraEffect [type, position]
- Parameters:
- triggerOrWaypoint: Object or Array format Waypoint
- type: String - Effect type (a subclass of CfgCameraEffects.Array)
Effect Position - "TERMINATE"
- "INTERNAL"
- "ZOOMIN"
- "ZOOMINSLOW"
- "AROUND"
- "AROUNDSLOW"
- "ZOOMANDAROUND"
- "AROUNDANDZOOMINSLOW"
- "ZOOMINS"
- "FIXED"
- "FIXEDWITHZOOM"
- "EXTERNAL"
- "$TERMINATE$"
- "TOP"
- "LEFT"
- "RIGHT"
- "FRONT"
- "BACK"
- "LEFT FRONT"
- "RIGHT FRONT"
- "LEFT BACK"
- "RIGHT BACK"
- "LEFT TOP"
- "RIGHT TOP"
- "FRONT TOP"
- "BACK TOP"
- "BOTTOM"
- position: String - Relative position
- Return Value:
- Nothing
Examples
- Example 1:
myTrigger setCameraEffect ["ZoomIn", "FRONT"];
- Example 2:
_waypoint1 setCameraEffect ["FIXED", "RIGHT TOP"];
Additional Information
- See also:
- cameraEffect
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Camera Control