camCreate: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 109875 by killzone_kid on 2018-10-21T19:07:35Z) |
Lou Montana (talk | contribs) (Add "crowe", fix description) |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ofp | | | ofp |Game name= | ||
|1.00| | |1.00|Game version= | ||
|eff= local | | |eff= local |Effects in MP= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Create a camera or a seagull object on the given position. | | 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]]. | |||
{{Important| | |||
* 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}} |Description= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| type [[camCreate]] position|= | | type [[camCreate]] position|Syntax= | ||
|p1= type: [[String]] - camera type, one of the following: | |p1= type: [[String]] - camera type, one of the following: | ||
* "camera" | * "camera" | ||
* "seagull" | * "seagull" (a crow in Arma 2) | ||
* "camconstruct" | * "camconstruct" | ||
* "camcurator" ( | * "camcurator" (Since Arma 3 Zeus) | ||
* or any vehicle class suitable to be spawned with cam | | * "crowe" (crow - Arma 3) | ||
* or any vehicle class suitable to be spawned with cam |Parameter 1= | |||
|p2= position: [[Array]] - format [[Position]] - position to create the object at | | |p2= position: [[Array]] - format [[Position]] - position to create the object at |Parameter 2= | ||
| [[Object]] - | | [[Object]] - the created camera |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_cam | |x1= <code>_cam = "camera" [[camCreate]] ([[eyePos]] [[player]]);</code> |Example 1= | ||
|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= camCreated objects are only visible locally (meaning they are client-side effects). |MP= | ||
| [[:Category:Command Group: Camera Control|Camera Control]], [[camCommand]], [[camDestroy]], [[camSetFocus]], [[camCommit]], [[setPiPEffect]], [[createVehicle]], [[createUnit]], [[showCinemaBorder]], [[cameraEffect]], [[cameraEffectEnableHUD]] |See also= | |||
}} | }} | ||
Line 41: | Line 45: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands| | [[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.96| | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1. | |||
[[Category:Scripting Commands ArmA| | |||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category: | [[Category:Command Group: Camera Control|{{uc:{{PAGENAME}}}}]] |
Revision as of 23:57, 2 January 2019
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. - Multiplayer:
- camCreated objects are only visible locally (meaning they are client-side effects).
- Groups:
- Uncategorised
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 Position - position to create the object at
- Return Value:
- Object - the created camera
Examples
- Example 1:
_cam = "camera" camCreate (eyePos player);
- Example 2:
_flr = "flare" camCreate (position _myPlane); // works too
Additional Information
- See also:
- Camera ControlcamCommandcamDestroycamSetFocuscamCommitsetPiPEffectcreateVehiclecreateUnitshowCinemaBordercameraEffectcameraEffectEnableHUD
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- Scripting Commands Arma 3
- Command Group: Camera Control