camCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Lou Montana (talk | contribs) (Update description and examples) |
||
Line 13: | Line 13: | ||
| Executes a command on the given ''camera / actor'' object. Known commands for: | | Executes a command on the given ''camera / actor'' object. Known commands for: | ||
{{{!}} class{{=}}"wikitable" | |||
* | ! All cameras !! "Camera" !! "Seagull" !! "CamCurator" | ||
* "seagull" | {{!}}- | ||
{{!}} | |||
* <tt>"manual on"</tt> | |||
* <tt>"manual off"</tt> | |||
{{!}} | |||
* <tt>"inertia on"</tt> | |||
* <tt>"inertia off"</tt> | |||
{{!}} | |||
* <tt>"landed"</tt> lands the seagull | |||
* <tt>"airborne"</tt> to make the seagull fly | |||
{{!}} | |||
* <tt>"maxPitch (x)"</tt> where (x) is a number (in degrees) | |||
* <tt>"minPitch (x)"</tt> where (x) is a number (in degrees) | |||
* <tt>"speedDefault (x)"</tt> where (x) is a number | |||
* <tt>"speedMax (x)"</tt> where (x) is a number | |||
* <tt>"ceilingHeight (x)"</tt> where (x) is a number in meters | |||
* <tt>"atl (x)"</tt> where (x) is on/off | |||
* <tt>"surfaceSpeed (x)"</tt> where (x) is on/off | |||
{{!}}} | |||
{{Informative | The [[camCommand]] changes are conducted immediately, the command doesn't wait for [[camCommit]]/[[camCommitPrepared]].}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| camera | | camera [[camCommand]] command |SYNTAX= | ||
|p1= camera: [[Object]] - | |p1= camera: [[Object]] - see [[camCreate]] |PARAMETER1= | ||
|p2= command: [[String]] - | |p2= command: [[String]] - see description |PARAMETER2= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_camera | |x1= <code>_camera [[camCommand]] "manual on";</code> |EXAMPLE1= | ||
|x2= <code>[[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"; | |||
</code> |EXAMPLE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 46: | Line 73: | ||
[[Category:Scripting Commands|CAMCOMMAND]] | [[Category:Scripting Commands|CAMCOMMAND]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.96| | [[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Camera Control|{{uc:{{PAGENAME}}}}]] | |||
Revision as of 21:35, 26 April 2020
Description
- Description:
- Executes a command on the given camera / actor object. Known commands for:
All cameras "Camera" "Seagull" "CamCurator" - "manual on"
- "manual off"
- "inertia on"
- "inertia off"
- "landed" lands the seagull
- "airborne" to make the seagull fly
- "maxPitch (x)" where (x) is a number (in degrees)
- "minPitch (x)" where (x) is a number (in degrees)
- "speedDefault (x)" where (x) is a number
- "speedMax (x)" where (x) is a number
- "ceilingHeight (x)" where (x) is a number in meters
- "atl (x)" where (x) is on/off
- "surfaceSpeed (x)" where (x) is on/off
- Groups:
- Uncategorised
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:
- cameraEffectcamCreatecamCommit
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 Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Camera Control