camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(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:


* All camera types - "manual on", "manual off"
{{{!}} class{{=}}"wikitable"
* "camera" - "inertia on", "inertia off"
! All cameras !! "Camera" !! "Seagull" !! "CamCurator"
* "seagull" - "landed", "airborne"
{{!}}-
{{!}}
* <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
{{!}}}


When you execute camCommand "landed" on a flying seagull, it will land and sit on the floor until you call camCommand "airborne". The [[camCommand]] changes are conducted immediately, the command doesn't wait for [[camCommit]]. |DESCRIPTION=
{{Informative | The [[camCommand]] changes are conducted immediately, the command doesn't wait for [[camCommit]]/[[camCommitPrepared]].}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| camera '''camCommand''' command |SYNTAX=
| camera [[camCommand]] command |SYNTAX=


|p1= camera: [[Object]] - object of type "camera" or "seagull" |PARAMETER1=
|p1= camera: [[Object]] - see [[camCreate]] |PARAMETER1=


|p2= command: [[String]] - one of "manual on", "manual off", "inertia on", "inertia off", "landed" and "airborne" corresponding to the description above. |PARAMETER2=
|p2= command: [[String]] - see description |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_camera '''camCommand''' "manual on";</code> |EXAMPLE1=
|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.99|CAMCOMMAND]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|CAMCOMMAND]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|CAMCOMMAND]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|CAMCOMMAND]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control|CAMCOMMAND]]
[[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}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on May 23, 2017 - 14:51 (UTC)</dd>
<dt class="note">[[User:SilentSpike|SilentSpike]]</dt>
<dd class="note">
In Arma 3 with the addition of the curator camera type, the following commands are supported:
<code>_camera <nowiki>=</nowiki> "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>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 22:35, 26 April 2020

Hover & click on the images for description

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
The camCommand changes are conducted immediately, the command doesn't wait for camCommit/camCommitPrepared.
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