camCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 9: Line 8:


|eff= local |Effects in MP=
|eff= local |Effects in MP=
____________________________________________________________________________________________


| Create a camera or a seagull object on the given position. The creation happens immediately and doesn't wait for [[camCommit]].<br>
| Create a camera or a seagull object on the given position. The creation happens immediately and doesn't wait for [[camCommit]].<br>
Line 17: Line 15:
* 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}} |Description=
____________________________________________________________________________________________


| type [[camCreate]] position|Syntax=
| type [[camCreate]] position|Syntax=
Line 32: Line 29:


| [[Object]] - the created camera |Return value=
| [[Object]] - the created camera |Return value=
____________________________________________________________________________________________
   
   
|x1= <code>_cam = "camera" [[camCreate]] ([[ASLToAGL]] [[eyePos]] [[player]]);</code> |Example 1=
|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= <code>_flr = "flare" [[camCreate]] ([[position]] _myPlane); {{codecomment|// works too}}</code> |Example 2=
____________________________________________________________________________________________


|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). |MP=

Revision as of 00:29, 17 January 2021

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:
camCommandcamDestroycamSetFocuscamCommitsetPiPEffectcreateVehiclecreateUnitshowCinemaBordercameraEffectcameraEffectEnableHUD

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

Notes

Bottom Section