setCameraEffect: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]] | |p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]] | ||
|p2= type: [[String]] - | |p2= type: [[String]] - effect type (a subclass of CfgCameraEffects.Array) | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
! Effect | ! Effect | ||
Line 66: | Line 66: | ||
{{!}}} | {{!}}} | ||
|p3= position: [[String]] - | |p3= position: [[String]] - relative position | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>myTrigger setCameraEffect ["ZoomIn", "FRONT"];</sqf> | ||
|x2= < | |x2= <sqf>_waypoint1 setCameraEffect ["FIXED", "RIGHT TOP"];</sqf> | ||
|seealso= [[cameraEffect]] | |seealso= [[cameraEffect]] | ||
}} | }} |
Latest revision as of 15:47, 8 November 2023
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
- Take On Helicopters: Scripting Commands
- Command Group: Camera Control