camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*) ([^ ]*)<\/code>" to "<code>$1$2$3 $4</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
Line 38: Line 38:


|x1= <sqf>camDestroy _cam;</sqf>
|x1= <sqf>camDestroy _cam;</sqf>
|x2= <code>_cam cameraEffect ["terminate","back"];
|x2= <sqf>_cam cameraEffect ["terminate","back"];
camDestroy _cam;</code>
camDestroy _cam;</sqf>


|seealso= [[camCreate]] [[cameraEffect]]
|seealso= [[camCreate]] [[cameraEffect]]
}}
}}

Latest revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Destroys camera object created with camCreate. This command doesn't need camCommit.
Destroying camera object does not terminate camera effect automatically, use cameraEffect prior to deleting the camera (see Example 2)
Groups:
Camera Control

Syntax

Syntax:
camDestroy object
Parameters:
object: Object
Return Value:
Nothing

Examples

Example 1:
camDestroy _cam;
Example 2:
_cam cameraEffect ["terminate","back"]; camDestroy _cam;

Additional Information

See also:
camCreate 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