camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s1= +" to "|s1= ")
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
Line 34: Line 34:
{{!}}- style="vertical-align: top"
{{!}}- style="vertical-align: top"
{{!}}
{{!}}
* <tt>"manual on"</tt>
* {{hl|"manual on"}}
* <tt>"manual off"</tt>
* {{hl|"manual off"}}
{{!}}
{{!}}
* <tt>"inertia on"</tt>
* {{hl|"inertia on"}}
* <tt>"inertia off"</tt>
* {{hl|"inertia off"}}
{{!}}
{{!}}
* <tt>"landed"</tt> lands the seagull
* {{hl|"landed"}} lands the seagull
* <tt>"airborne"</tt> makes the seagull fly
* {{hl|"airborne"}} makes the seagull fly
{{!}}
{{!}}
* <tt>"maxPitch (x)"</tt> (number, in degrees)
* <tt>"maxPitch (x)"</tt> (number, in degrees)

Revision as of 00:44, 16 November 2021

Hover & click on the images for description

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)
  • "atl (x)" (on/off)
  • "surfaceSpeed (x)" (on/off)
The camCommand effect is immediate and does not need camCommit/camCommitPrepared.
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:
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