camCreate: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| ofp | | ofp | ||
|1.00 | |1.00 | ||
|gr1 = Camera Control | |gr1 = Camera Control | ||
|eff= local |Effects in MP= | |eff= local |Effects in MP= | ||
Line 14: | Line 14: | ||
* 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}} | * Unlike [[createVehicle]], objects are created exactly at the given position, without consideration of the surrounding objects}} | ||
| type [[camCreate]] position | | type [[camCreate]] position | ||
|p1= type: [[String]] - camera type, one of the following: | |p1= type: [[String]] - camera type, one of the following: | ||
Line 24: | Line 24: | ||
* "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 | * or any vehicle class suitable to be spawned with cam | ||
|p2= position: [[Array]] - format [[PositionAGL]] - position to create the object at | |p2= position: [[Array]] - format [[PositionAGL]] - position to create the object at | ||
| [[Object]] - the created camera | | [[Object]] - the created camera | ||
|x1= <code>_cam = "camera" [[camCreate]] ([[ASLToAGL]] [[eyePos]] [[player]]);</code> | |x1= <code>_cam = "camera" [[camCreate]] ([[ASLToAGL]] [[eyePos]] [[player]]);</code> | ||
|x2= <code>_flr = "flare" [[camCreate]] ([[position]] _myPlane); {{codecomment|// works too}}</code> | |x2= <code>_flr = "flare" [[camCreate]] ([[position]] _myPlane); {{codecomment|// works too}}</code> | ||
|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). | ||
| [[camCommand]], [[camDestroy]], [[camSetFocus]], [[camCommit]], [[setPiPEffect]], [[createVehicle]], [[createUnit]], [[showCinemaBorder]], [[cameraEffect]], [[cameraEffectEnableHUD]] | | [[camCommand]], [[camDestroy]], [[camSetFocus]], [[camCommit]], [[setPiPEffect]], [[createVehicle]], [[createUnit]], [[showCinemaBorder]], [[cameraEffect]], [[cameraEffectEnableHUD]] | ||
}} | }} | ||
Revision as of 00:03, 18 January 2021
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 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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Camera Control
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands