camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Update description and examples)
m (Fix format)
Line 24: Line 24:
{{!}}
{{!}}
* <tt>"landed"</tt> lands the seagull
* <tt>"landed"</tt> lands the seagull
* <tt>"airborne"</tt> to make the seagull fly
* <tt>"airborne"</tt> makes the seagull fly
{{!}}
{{!}}
* <tt>"maxPitch (x)"</tt> where (x) is a number (in degrees)
* <tt>"maxPitch (x)"</tt> (number, in degrees)
* <tt>"minPitch (x)"</tt> where (x) is a number (in degrees)
* <tt>"minPitch (x)"</tt> (number, in degrees)
* <tt>"speedDefault (x)"</tt> where (x) is a number
* <tt>"speedDefault (x)"</tt> (number)
* <tt>"speedMax (x)"</tt> where (x) is a number
* <tt>"speedMax (x)"</tt> (number)
* <tt>"ceilingHeight (x)"</tt> where (x) is a number in meters
* <tt>"ceilingHeight (x)"</tt> (number, in meters)
* <tt>"atl (x)"</tt> where (x) is on/off
* <tt>"atl (x)"</tt> (on/off)
* <tt>"surfaceSpeed (x)"</tt> where (x) is on/off
* <tt>"surfaceSpeed (x)"</tt> (on/off)
{{!}}}
{{!}}}


{{Informative | The [[camCommand]] changes are conducted immediately, the command doesn't wait for [[camCommit]]/[[camCommitPrepared]].}} |DESCRIPTION=
{{Informative | The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 46: Line 46:
| [[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];
|x2= <code>[[private]] _camera = "CamCurator" [[camCreate]] [0,0,0];
_camera [[camCommand]] "maxPitch 89";
_camera [[camCommand]] "maxPitch 89";
Line 60: Line 61:


| [[cameraEffect]], [[camCreate]], [[camCommit]]  |SEEALSO=
| [[cameraEffect]], [[camCreate]], [[camCommit]]  |SEEALSO=
}}
}}



Revision as of 22:38, 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" 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)
  • "atl (x)" (on/off)
  • "surfaceSpeed (x)" (on/off)
The camCommand effect is immediate and does not need 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