camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(61 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CAMDESTROY]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|CAMDESTROY]]
[[Category:Scripting Commands OFP 1.46|CAMDESTROY]]
[[Category:Scripting Commands ArmA|CAMDESTROY]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066"> '''camDestroy ''camera'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''camera:''' [[Object]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Nothing]]
|game7= arma3
|version7= 0.50


'''Description:'''
|gr1= Camera Control


Destroy the '''camera'''.
|arg= local


|eff= local


'''Example:'''
|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)}}


'''camDestroy''' _cameraOne
|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