camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(68 intermediate revisions by 12 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#C|COMREF]]
{{RV|type=command


<h2 style="color:#000066"> '''camDestroy ''camera'''''</h2>
|game1= ofp
|version1= 1.00


|game2= ofpe
|version2= 1.00


'''Operand types:'''
|game3= arma1
|version3= 1.00


'''camera:''' [[Object]]
|game4= arma2
|version4= 1.00


'''Type of returned value:'''
|game5= arma2oa
|version5= 1.50


[[Nothing]]
|game6= tkoh
|version6= 1.00


'''Description:'''
|game7= arma3
|version7= 0.50


Destroy '''camera'''.
|gr1= Camera Control


|arg= local


'''Example:'''
|eff= local


'''camDestroy''' _cameraOne
|descr= Destroys camera object created with [[camCreate]]. This command doesn't need [[camCommit]].
{{Feature | important | Destroying camera object does not terminate camera effect automatically, use [[cameraEffect]] prior to deleting the camera (see Example 2)}}
 
|s1= [[camDestroy]] object
 
|p1= object: [[Object]]
 
|r1= [[Nothing]]
 
|x1= <sqf>camDestroy _cam;</sqf>
|x2= <sqf>
_cam cameraEffect ["terminate","back"];
camDestroy _cam;
</sqf>
 
|seealso= [[camCreate]] [[cameraEffect]]
}}

Latest revision as of 21:36, 2 September 2024

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