cameraEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(rtt param, example, seealso)
mNo edit summary
Line 46: Line 46:


[[Category:Scripting Commands|CAMERAEFFECT]]
[[Category:Scripting Commands|CAMERAEFFECT]]
[[Category:Scripting Commands OFP 1.99|CAMERAEFFECT]]
[[Category:Scripting Commands OFP 1.96|CAMERAEFFECT]]
[[Category:Scripting Commands OFP 1.96|CAMERAEFFECT]]
[[Category:Scripting Commands OFP 1.46|CAMERAEFFECT]]
[[Category:Scripting Commands OFP 1.46|CAMERAEFFECT]]

Revision as of 09:15, 25 September 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