cameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
No edit summary
Line 75: Line 75:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 30, 2016 - 16:40 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
Types of camera for [[Description.ext#CfgCameraEffects|CfgCameraEffects]] config:
* CamExternal (CamInterpolated) <tt>type <nowiki>=</nowiki> 0;</tt> // linked directly with object
* CamStatic <tt>type <nowiki>=</nowiki> 1;</tt> // fixed point in space
* CamStaticWithZoom <tt>type <nowiki>=</nowiki> 2;</tt> // fixed point in space
* CamChained <tt>type <nowiki>=</nowiki> 3;</tt> // chained
* CamTerminate <tt>type <nowiki>=</nowiki> 4;</tt> // terminate
* CamInternal <tt>type <nowiki>=</nowiki> 5;</tt> // internal view
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 17:40, 30 October 2016

Hover & click on the images for description

Description

Description:
Switch to the given camera or object with the given effect. If you want to switch the screen directly to the first-person, aiming, third-person or group view of an object, use switchCamera instead. The effect type "Terminate" is used to exit the current camera view and switch back to the player's view. Does not need camCommit.
Groups:
Uncategorised

Syntax

Syntax:
camera cameraEffect [name, position, rtt]
Parameters:
camera: Object - object of type "camera"
[name, position, rtt]: Array
name: String - the effect type (defined in CfgCameraEffects >> Array). Defaults are: "Internal", "External", "Fixed", "FixedWithZoom" and "Terminate"
position: String - position of the effect. One of:
  • "TOP"
  • "LEFT"
  • "RIGHT"
  • "FRONT"
  • "BACK"
  • "LEFT FRONT"
  • "RIGHT FRONT"
  • "LEFT BACK"
  • "RIGHT BACK"
  • "LEFT TOP"
  • "RIGHT TOP"
  • "FRONT TOP"
  • "BACK TOP"
  • "BOTTOM"
These are usually used with "Fixed" and "FixedWithZoom" effect types. If not sure which position to use, set it to "BACK";
rtt: String - (optional) Render To Texture surface reference
Return Value:
Nothing

Examples

Example 1:
_cam cameraEffect ["internal", "BACK"];
Example 2:
_cam cameraEffect ["internal", "back", "rendersurface"];
Example 3:
cam = "seagull" camCreate (player modelToWorld [0,0,100]); cam cameraEffect ["FIXED", "LEFT TOP"]; cam camCommand "MANUAL ON";

Additional Information

See also:
switchCamerasetCameraEffectcameraViewcameraOnsetPiPEffect

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

Notes

Bottom Section

Posted on October 30, 2016 - 16:40 (UTC)
Killzone Kid
Types of camera for CfgCameraEffects config:
  • CamExternal (CamInterpolated) type = 0; // linked directly with object
  • CamStatic type = 1; // fixed point in space
  • CamStaticWithZoom type = 2; // fixed point in space
  • CamChained type = 3; // chained
  • CamTerminate type = 4; // terminate
  • CamInternal type = 5; // internal view