camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00


|gr1 = Camera Control
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50
 
|gr1= Camera Control


|arg= local
|arg= local
Line 11: Line 28:
|eff= local
|eff= local


| Destroys camera object created with [[camCreate]]. This command doesn't need [[camCommit]].  
|descr= Destroys camera object created with [[camCreate]]. This command doesn't need [[camCommit]].  
<br><br>
{{Feature | important | Destroying camera object does not terminate camera effect automatically, use [[cameraEffect]] prior to deleting the camera (see Example 2)}}
{{Important | Destroying camera object does not terminate camera effect automatically, use [[cameraEffect]] prior to deleting the camera (see Example 2)}}


| [[camDestroy]] object
|s1= [[camDestroy]] object


|p1= object: [[Object]]
|p1= object: [[Object]]


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


| [[camCreate]], [[cameraEffect]]
|seealso= [[camCreate]] [[cameraEffect]]
}}
}}
[[Category:Scripting Commands|CAMDESTROY]]
[[Category:Scripting Commands OFP 1.99|CAMDESTROY]]
[[Category:Scripting Commands OFP 1.96|CAMDESTROY]]
[[Category:Scripting Commands OFP 1.46|CAMDESTROY]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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