cameraEffect: Difference between revisions
Jump to navigation
Jump to search
m (format) |
Killzone Kid (talk | contribs) 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
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"
- 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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Camera Control
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters