cameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(does not need camcommit)
(rtt param, example, seealso)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| camera '''cameraEffect''' [name, position] |= Syntax
| camera '''cameraEffect''' [name, position, rtt] |= Syntax


|p1= camera: [[Object]] - object of type "camera" |= Parameter 1
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1
Line 23: Line 23:


|p4= position: [[String]] - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used) |= Parameter 4
|p4= position: [[String]] - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used) |= Parameter 4
|p5= rtt: [[String]] - (optional) [http://community.bistudio.com/wiki/Procedural_Textures#Render_To_Texture Render To Texture] surface reference |= Parameter 5


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_cam cameraEffect ["internal", "BACK"]</pre> |= Example 1
|x1= <code>_cam [[cameraEffect]] ["internal", "BACK"];</code> |= Example 1
|x2= <code>_cam [[cameraEffect]] ["internal", "back", "rendersurface"];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[switchCamera]], [[setCameraEffect]], [[cameraView]], [[cameraOn]] |= See also
| [[switchCamera]], [[setCameraEffect]], [[cameraView]], [[cameraOn]], [[setPiPEffect]] |= See also


}}
}}

Revision as of 17:29, 31 August 2014

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]: Array
name: String - the effect type. One of "Internal", "External", "Fixed", "FixedWithZoom" and "Terminate"
position: String - position of the effect. One of "TOP", "LEFT", "RIGHT", "FRONT" and "BACK" ("BACK" is normally used)
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"];

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