setCameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma1
|game1= ofpe
|1.00
|version1= 1.00


|gr1 = Camera Control
|game2= arma1
|version2= 1.00


|{{Feature|arma3 | This command is not available in Arma 3}}
|game3= arma2
|version3= 1.00


'''Name''' efines the effect type (a subclass of CfgCameraEffects.Array):
|game4= arma2oa
|version4= 1.50


*"TERMINATE",
|game5= tkoh
*"INTERNAL",
|version5= 1.00
*"ZOOMIN",
*"ZOOMINSLOW",
*"AROUND",
*"AROUNDSLOW",
*"ZOOMANDAROUND",
*"AROUNDANDZOOMINSLOW",
*"ZOOMINS",
*"FIXED",
*"FIXEDWITHZOOM",
*"EXTERNAL"
*"$TERMINATE$" to cancel the current effect.


'''Placement''' is camera placement:
|gr1= Camera Control


*"TOP",
|descr= Applies an effect to the current camera of the player.
*"LEFT",
*"RIGHT",
*"FRONT",
*"BACK",
*"LEFT FRONT",
*"RIGHT FRONT",
*"LEFT BACK",
*"RIGHT BACK",
*"LEFT TOP",
*"RIGHT TOP",
*"FRONT TOP",
*"BACK TOP"
*"BOTTOM".


| trigger '''setCameraEffect''' [name, position]
{{Feature|arma3|This command is not present in {{arma3}}.}}


|p1= trigger: [[Object]]
|s1= triggerOrWaypoint [[setCameraEffect]] [type, position]


|p2= [name, position]: [[Array]]
|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]]


|p3= name: [[String]]
|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"
}}
{{!}}}


|p4= position: [[String]]
|p3= position: [[String]] - relative position


| [[Nothing]]
|r1= [[Nothing]]


|s2= waypoint '''setCameraEffect''' [name, position]
|x1= <sqf>myTrigger setCameraEffect ["ZoomIn", "FRONT"];</sqf>


|p21= waypoint: [[Waypoint]]: [[Array]]
|x2= <sqf>_waypoint1 setCameraEffect ["FIXED", "RIGHT TOP"];</sqf>


|p22= [name, position]: [[Array]]
|seealso= [[cameraEffect]]
 
|p23= name: [[String]]
 
|p24= position: [[String]]
 
|r2= [[Nothing]]
 
|x1= <code>trigger [[setCameraEffect]] ["ZoomIn", "FRONT"]</code>
 
| [[cameraEffect]]
}}
}}
<dl class="command_description">
<!-- Note Section BEGIN -->
</dl>
[[Category:Scripting Commands|SETCAMERAEFFECT]]
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}

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