camCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)]]" to "{{GameCategory|arma1|Scripting Commands}}")
mNo edit summary
 
(44 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


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


| Create a camera or a seagull object on the given position. The creation happens immediately and doesn't wait for [[camCommit]].<br>
|game5= arma2oa
Among other commands, [[cameraEffect]] must be used to enter the camera's view and [[camDestroy]] to delete the created camera. See also [[:Category:Command Group: Camera Control|Camera Control]].<br><br>
|version5= 1.50
{{Important|
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50
 
|gr1= Camera Control
 
|eff= local
 
|descr= Create a camera or a seagull object on the given position. The creation happens immediately and doesn't wait for [[camCommit]].<br>
Among other commands, [[cameraEffect]] must be used to enter the camera's view and [[camDestroy]] to delete the created camera. See also [[:Category:Command Group: Camera Control|Camera Control]].{{Feature|important|
* Other objects can be created this way, but vehicles created with [[camCreate]] cannot be entered
* Other objects can be created this way, but vehicles created with [[camCreate]] cannot be entered
* Any unit created with [[camCreate]] will remain static
* Any unit created with [[camCreate]] will remain static
* Unlike [[createVehicle]], objects are created exactly at the given position, without consideration of the surrounding objects}} |Description=
* Unlike [[createVehicle]], objects are created exactly at the given position, without consideration of the surrounding objects}}
____________________________________________________________________________________________


| type [[camCreate]] position|Syntax=
|s1= type [[camCreate]] position


|p1= type: [[String]] - camera type, one of the following:
|p1= type: [[String]] - camera type, one of the following:
Line 27: Line 40:
* "camcurator" (Since Arma 3 Zeus)
* "camcurator" (Since Arma 3 Zeus)
* "crowe" (crow - Arma 3)
* "crowe" (crow - Arma 3)
* or any vehicle class suitable to be spawned with cam |Parameter 1=
* or any vehicle class suitable to be spawned with cam
 
|p2= position: [[Array]] format [[Position#PositionAGL|PositionAGL]] - position to create the object at


|p2= position: [[Array]] - format [[PositionAGL]] - position to create the object at |Parameter 2=
|r1= [[Object]] - the created camera


| [[Object]] - the created camera |Return value=
|x1= <sqf>_cam = "camera" camCreate (ASLToAGL eyePos player);</sqf>
____________________________________________________________________________________________
 
|x1= <code>_cam = "camera" [[camCreate]] ([[ASLToAGL]] [[eyePos]] [[player]]);</code> |Example 1=


|x2= <code>_flr = "flare" [[camCreate]] ([[position]] _myPlane); {{codecomment|// works too}}</code> |Example 2=
|x2= <sqf>_flr = "flare" camCreate (position _myPlane); // works too</sqf>
____________________________________________________________________________________________


|mp= camCreated objects are only visible locally (meaning they are client-side effects). |MP=
|mp= camCreated objects are only visible locally (meaning they are client-side effects).


| [[camCommand]], [[camDestroy]], [[camSetFocus]], [[camCommit]], [[setPiPEffect]], [[createVehicle]], [[createUnit]], [[showCinemaBorder]], [[cameraEffect]], [[cameraEffectEnableHUD]] |See also=
|seealso= [[camCommand]] [[camDestroy]] [[camSetFocus]] [[camCommit]] [[setPiPEffect]] [[createVehicle]] [[createUnit]] [[showCinemaBorder]] [[cameraEffect]] [[cameraEffectEnableHUD]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:25, 28 September 2023

Hover & click on the images for description

Description

Description:
Create a camera or a seagull object on the given position. The creation happens immediately and doesn't wait for camCommit.
Among other commands, cameraEffect must be used to enter the camera's view and camDestroy to delete the created camera. See also Camera Control.
  • Other objects can be created this way, but vehicles created with camCreate cannot be entered
  • Any unit created with camCreate will remain static
  • Unlike createVehicle, objects are created exactly at the given position, without consideration of the surrounding objects
Multiplayer:
camCreated objects are only visible locally (meaning they are client-side effects).
Groups:
Camera Control

Syntax

Syntax:
type camCreate position
Parameters:
type: String - camera type, one of the following:
  • "camera"
  • "seagull" (a crow in Arma 2)
  • "camconstruct"
  • "camcurator" (Since Arma 3 Zeus)
  • "crowe" (crow - Arma 3)
  • or any vehicle class suitable to be spawned with cam
position: Array format PositionAGL - position to create the object at
Return Value:
Object - the created camera

Examples

Example 1:
_cam = "camera" camCreate (ASLToAGL eyePos player);
Example 2:
_flr = "flare" camCreate (position _myPlane); // works too

Additional Information

See also:
camCommand camDestroy camSetFocus camCommit setPiPEffect createVehicle createUnit showCinemaBorder cameraEffect cameraEffectEnableHUD

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