setCameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fixed params)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2")
 
(50 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma|= Game name
|game1= ofpe
|version1= 1.00


|1.00|= Game version
|game2= arma1
____________________________________________________________________________________________
|version2= 1.00


| Name defines the effect type (a subclass of CfgCameraEffects.Array) or "$TERMINATE$" to cancel the current effect. Position is camera placement: "TOP", "LEFT", "RIGHT", "FRONT", "BACK", "LEFT FRONT", "RIGHT FRONT", "LEFT BACK", "RIGHT BACK", "LEFT TOP", "RIGHT TOP", "FRONT TOP", "BACK TOP" or "BOTTOM". |= Description
|game3= arma2
____________________________________________________________________________________________
|version3= 1.00


| trigger or waypoint '''setCameraEffect''' [name, position] |= Syntax
|game4= arma2oa
|version4= 1.50


|p1= trigger or waypoint: [[Object]] |= Parameter 1
|game5= tkoh
|version5= 1.00


|p2= name: [[String]] |= Parameter 2
|gr1= Camera Control


|p3= position: [[String]] |= Parameter 3
|descr= Applies an effect to the current camera of the player.


| [[Nothing]] |= Return value
{{Feature|arma3|This command is not present in {{arma3}}.}}
____________________________________________________________________________________________
 
|x1= <pre>trigger setCameraEffect ["ZoomIn", "FRONT"]</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|s1= triggerOrWaypoint [[setCameraEffect]] [type, position]


|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]]
|p2= type: [[String]] - effect type (a subclass of CfgCameraEffects.Array)
{{{!}} class="wikitable"
! Effect
! Position
{{!}}-
{{!}} style="vertical-align: top" {{!}}
{{Columns|2|
* "TERMINATE"
* "INTERNAL"
* "ZOOMIN"
* "ZOOMINSLOW"
* "AROUND"
* "AROUNDSLOW"
* "ZOOMANDAROUND"
* "AROUNDANDZOOMINSLOW"
* "ZOOMINS"
* "FIXED"
* "FIXEDWITHZOOM"
* "EXTERNAL"
* "$TERMINATE$"
}}
}}
{{!}} style="vertical-align: top" {{!}}
{{Columns|3|
* "TOP"
* "LEFT"
* "RIGHT"
* "FRONT"
* "BACK"
* "LEFT FRONT"
* "RIGHT FRONT"
* "LEFT BACK"
* "RIGHT BACK"
* "LEFT TOP"
* "RIGHT TOP"
* "FRONT TOP"
* "BACK TOP"
* "BOTTOM"
}}
{{!}}}
|p3= position: [[String]] - relative position
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>myTrigger setCameraEffect ["ZoomIn", "FRONT"];</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= <sqf>_waypoint1 setCameraEffect ["FIXED", "RIGHT TOP"];</sqf>
[[Category:Scripting Commands|SETCAMERAEFFECT]]
 
[[Category:Scripting Commands OFP Elite |SETCAMERAEFFECT]]
|seealso= [[cameraEffect]]
[[Category:Scripting Commands ArmA|SETCAMERAEFFECT]]
}}

Latest revision as of 15:47, 8 November 2023

Hover & click on the images for description

Description

Description:
Applies an effect to the current camera of the player.
Arma 3
This command is not present in Arma 3.
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