camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Camera Control |GROUP1= ")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|gr1 = Camera Control |GROUP1=
|game3= arma1
|version3= 1.00


|game4= arma2
|version4= 1.00


|game5= arma2oa
|version5= 1.50


|arg= local |Multiplayer Arguments=
|game6= tkoh
|version6= 1.00


|eff= local |Multiplayer Effects=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50


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


| [[camDestroy]] object |SYNTAX=
|arg= local


|p1= object: [[Object]] |PARAMETER1=
|eff= local


| [[Nothing]] |RETURNVALUE=
|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)}}
 
|x1= <code>[[camDestroy]] _cam;</code> |EXAMPLE1=
|x2= <code>_cam [[cameraEffect]] ["terminate","back"];
[[camDestroy]] _cam;</code> |EXAMPLE2=


____________________________________________________________________________________________
|s1= [[camDestroy]] object


| [[camCreate]], [[cameraEffect]] |SEEALSO=
|p1= object: [[Object]]


}}
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>camDestroy _cam;</sqf>
<dl class="command_description">
|x2= <sqf>
<!-- Note Section BEGIN -->
_cam cameraEffect ["terminate","back"];
camDestroy _cam;
</sqf>


<!-- Note Section END -->
|seealso= [[camCreate]] [[cameraEffect]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
 
[[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]]
[[Category:Scripting Commands Armed Assault|CAMDESTROY]]
[[Category:Command Group: Camera Control|CAMDESTROY]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

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