camDestroy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(58 intermediate revisions by 10 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


|arg= local |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= local |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Destroy an object created with [[camCreate]].camDestroy is conducted immediately, the command doesn't wait for [[camCommit]]. |= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| '''camDestroy''' object |= Syntax
|game6= tkoh
|version6= 1.00


|p1= object: [[Object]] |= Parameter 1
|game7= arma3
|version7= 0.50


| [[Nothing]] |= Return value
|gr1= Camera Control
____________________________________________________________________________________________
 
|x1= <pre>camDestroy _cam</pre> |= Example 1
____________________________________________________________________________________________


| [[camCreate]] |= See also
|arg= local


}}
|eff= local
 
|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


<h3 style="display:none">Notes</h3>
|p1= object: [[Object]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>camDestroy _cam;</sqf>
|x2= <sqf>
_cam cameraEffect ["terminate","back"];
camDestroy _cam;
</sqf>


[[Category:Scripting Commands|CAMDESTROY]]
|seealso= [[camCreate]] [[cameraEffect]]
[[Category:Scripting Commands OFP 1.96|CAMDESTROY]]
}}
[[Category:Scripting Commands OFP 1.46|CAMDESTROY]]
[[Category:Scripting Commands ArmA|CAMDESTROY]]
[[Category:Command Group: Camera Control|CAMDESTROY]]
[[Category:Scripting Commands ArmA2|{{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