camCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 47: | Line 47: | ||
* {{hl|"speedDefault (x)"}} (number) | * {{hl|"speedDefault (x)"}} (number) | ||
* {{hl|"speedMax (x)"}} (number) | * {{hl|"speedMax (x)"}} (number) | ||
* {{hl|"ceilingHeight (x)"}} (number, in meters) | * {{hl|"ceilingHeight (x)"}} (number, in meters, ASL) | ||
* {{hl|"atl (x)"}} (on/off) | * {{hl|"atl (x)"}} (on/off) | ||
* {{hl|"surfaceSpeed (x)"}} (on/off) | * {{hl|"surfaceSpeed (x)"}} (on/off) | ||
{{!}}} | {{!}}} | ||
{{Feature | | {{Feature|informative|The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}} | ||
|s1= camera [[camCommand]] command | |s1= camera [[camCommand]] command | ||
Line 62: | Line 62: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_camera camCommand "manual on";</sqf> | ||
|x2= < | |x2= <sqf> | ||
private _camera = "CamCurator" camCreate [0,0,0]; | |||
_camera camCommand "maxPitch 89"; | _camera camCommand "maxPitch 89"; | ||
_camera | _camera camCommand "minPitch -89"; | ||
_camera | _camera camCommand "speedDefault 0.1"; | ||
_camera | _camera camCommand "speedMax 2"; | ||
_camera | _camera camCommand "ceilingHeight 5000"; | ||
_camera | _camera camCommand "atl off"; | ||
_camera | _camera camCommand "surfaceSpeed off"; | ||
</sqf> | |||
|seealso= [[cameraEffect]] [[camCreate]] [[camCommit]] | |seealso= [[cameraEffect]] [[camCreate]] [[camCommit]] | ||
}} | }} |
Latest revision as of 21:36, 2 September 2024
Description
- Description:
- Executes a command on the given camera / actor object. Known commands:
All cameras "Camera" "Seagull" "CamCurator" - "manual on"
- "manual off"
- "inertia on"
- "inertia off"
- "landed" lands the seagull
- "airborne" makes the seagull fly
- "maxPitch (x)" (number, in degrees)
- "minPitch (x)" (number, in degrees)
- "speedDefault (x)" (number)
- "speedMax (x)" (number)
- "ceilingHeight (x)" (number, in meters, ASL)
- "atl (x)" (on/off)
- "surfaceSpeed (x)" (on/off)
- Groups:
- Camera Control
Syntax
- Syntax:
- camera camCommand command
- Parameters:
- camera: Object - see camCreate
- command: String - see description
- Return Value:
- Nothing
Examples
- Example 1:
- _camera camCommand "manual on";
- Example 2:
- private _camera = "CamCurator" camCreate [0,0,0]; _camera camCommand "maxPitch 89"; _camera camCommand "minPitch -89"; _camera camCommand "speedDefault 0.1"; _camera camCommand "speedMax 2"; _camera camCommand "ceilingHeight 5000"; _camera camCommand "atl off"; _camera camCommand "surfaceSpeed off";
Additional Information
- See also:
- cameraEffect camCreate camCommit
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