camCreate: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(82 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| ofp |= | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
| | |game3= arma1 | ||
|version3= 1.00 | |||
| | |game4= arma2 | ||
|version4= 1.00 | |||
| | |game5= arma2oa | ||
|version5= 1.50 | |||
| | |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 | |||
* Any unit created with [[camCreate]] will remain static | |||
* Unlike [[createVehicle]], objects are created exactly at the given position, without consideration of the surrounding objects. | |||
}} | }} | ||
|s1= type [[camCreate]] position | |||
|p1= type: [[String]] - camera type, one of the following: | |||
* "camera" | |||
* "seagull" (a crow in {{arma2}}) | |||
* "camconstruct" | |||
* "camcurator" (Since {{Name|arma3zeus}}) | |||
* "crowe" (crow - {{arma3}}) | |||
* or any vehicle class suitable to be spawned with camera | |||
|p2= position: [[Array]] format [[Position#PositionAGL|PositionAGL]] - position at which to create the object | |||
|r1= [[Object]] - the created camera | |||
|x1= <sqf>_cam = "camera" camCreate (ASLToAGL eyePos player);</sqf> | |||
|x2= <sqf>_flr = "flare" camCreate (position _myPlane); // works too</sqf> | |||
</ | |||
|mp= camCreated objects are only visible locally (meaning they are client-side effects). | |||
|seealso= [[camCommand]] [[camDestroy]] [[camSetFocus]] [[camCommit]] [[setPiPEffect]] [[createVehicle]] [[createUnit]] [[showCinemaBorder]] [[cameraEffect]] [[cameraEffectEnableHUD]] | |||
}} | |||
[[ | |||
[[ | |||
[[ | |||
[[ |
Latest revision as of 00:34, 16 May 2024
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:
- 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 camera
- position: Array format PositionAGL - position at which to create the object
- Return Value:
- Object - the created camera
Examples
- Example 1:
- Example 2:
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Camera Control
- Scripting Commands: Local Effect