setCameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


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


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


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


'''Name''' efines the effect type (a subclass of CfgCameraEffects.Array):
|gr1= Camera Control


*"TERMINATE",
|descr= {{Feature|arma3|This command is not available in Arma 3.}}
*"INTERNAL",
*"ZOOMIN",
*"ZOOMINSLOW",
*"AROUND",
*"AROUNDSLOW",
*"ZOOMANDAROUND",
*"AROUNDANDZOOMINSLOW",
*"ZOOMINS",
*"FIXED",
*"FIXEDWITHZOOM",
*"EXTERNAL"
*"$TERMINATE$" to cancel the current effect.


'''Placement''' is camera placement:
'''Name''' defines the effect type (a subclass of CfgCameraEffects.Array) and '''Position''' the effect's relative position.


*"TOP",
{{{!}} class="wikitable"
*"LEFT",
! Name
*"RIGHT",
! Placement
*"FRONT",
{{!}}-
*"BACK",
{{!}} style="vertical-align: top" {{!}}
*"LEFT FRONT",
<div style="columns: 2">
*"RIGHT FRONT",
* "TERMINATE"
*"LEFT BACK",
* "INTERNAL"
*"RIGHT BACK",
* "ZOOMIN"
*"LEFT TOP",
* "ZOOMINSLOW"
*"RIGHT TOP",
* "AROUND"
*"FRONT TOP",
* "AROUNDSLOW"
*"BACK TOP"
* "ZOOMANDAROUND"
*"BOTTOM".
* "AROUNDANDZOOMINSLOW"
* "ZOOMINS"
* "FIXED"
* "FIXEDWITHZOOM"
* "EXTERNAL"
* "$TERMINATE$"
</div>
{{!}} style="vertical-align: top" {{!}}
<div style="columns: 3">
* "TOP"
* "LEFT"
* "RIGHT"
* "FRONT"
* "BACK"
* "LEFT FRONT"
* "RIGHT FRONT"
* "LEFT BACK"
* "RIGHT BACK"
* "LEFT TOP"
* "RIGHT TOP"
* "FRONT TOP"
* "BACK TOP"
* "BOTTOM"
</div>
{{!}}}


| trigger '''setCameraEffect''' [name, position]
|s1= triggerOrWaypoint [[setCameraEffect]] [name, position]


|p1= trigger: [[Object]]
|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]]


|p2= [name, position]: [[Array]]
|p2= [name, position]: [[Array]]
Line 51: Line 65:
|p4= position: [[String]]
|p4= position: [[String]]


| [[Nothing]]
|r1= [[Nothing]]
 
|s2= waypoint '''setCameraEffect''' [name, position]
 
|p21= waypoint: [[Waypoint]]: [[Array]]
 
|p22= [name, position]: [[Array]]
 
|p23= name: [[String]]
 
|p24= position: [[String]]
 
|r2= [[Nothing]]
   
   
|x1= <code>trigger [[setCameraEffect]] ["ZoomIn", "FRONT"]</code>
|x1= <code>myTrigger [[setCameraEffect]] ["ZoomIn", "FRONT"];</code>
|x2= <code>_waypoint1 [[setCameraEffect]] ["FIXED", "RIGHT TOP"];</code>


|seealso= [[cameraEffect]]
|seealso= [[cameraEffect]]
}}
}}
<dl class="command_description">
<!-- Note Section BEGIN -->
</dl>


{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}

Revision as of 15:14, 15 March 2021

Hover & click on the images for description

Description

Description:
Arma 3
This command is not available in Arma 3.

Name defines the effect type (a subclass of CfgCameraEffects.Array) and Position the effect's relative position.

Name Placement
  • "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"
Groups:
Camera Control

Syntax

Syntax:
triggerOrWaypoint setCameraEffect [name, position]
Parameters:
triggerOrWaypoint: Object or Array format Waypoint
[name, position]: Array
name: String
position: String
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