camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|arg= local
|arg= local
Line 11: Line 28:
|gr1= Camera Control
|gr1= Camera Control


| Executes a command on the given ''camera / actor'' object. Known commands for:
|descr= Executes a command on the given ''camera / actor'' object. Known commands:


{{{!}} class{{=}}"wikitable"
{{{!}} class{{=}}"wikitable"
! All cameras !! "Camera" !! "Seagull" !! "CamCurator"
! All cameras !! "Camera" !! "Seagull" !! "CamCurator"
{{!}}-
{{!}}- 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)
* {{hl|"maxPitch (x)"}} (number, in degrees)
* <tt>"minPitch (x)"</tt> (number, in degrees)
* {{hl|"minPitch (x)"}} (number, in degrees)
* <tt>"speedDefault (x)"</tt> (number)
* {{hl|"speedDefault (x)"}} (number)
* <tt>"speedMax (x)"</tt> (number)
* {{hl|"speedMax (x)"}} (number)
* <tt>"ceilingHeight (x)"</tt> (number, in meters)
* {{hl|"ceilingHeight (x)"}} (number, in meters, ASL)
* <tt>"atl (x)"</tt> (on/off)
* {{hl|"atl (x)"}} (on/off)
* <tt>"surfaceSpeed (x)"</tt> (on/off)
* {{hl|"surfaceSpeed (x)"}} (on/off)
{{!}}}
{{!}}}


{{Informative | The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}}
{{Feature|informative|The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}}


| camera [[camCommand]] command
|s1= camera [[camCommand]] command


|p1= camera: [[Object]] - see [[camCreate]]
|p1= camera: [[Object]] - see [[camCreate]]
Line 43: Line 60:
|p2= command: [[String]] - see description
|p2= command: [[String]] - see description


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_camera [[camCommand]] "manual on";</code>
|x1= <sqf>_camera camCommand "manual on";</sqf>


|x2= <code>[[private]] _camera = "CamCurator" [[camCreate]] [0,0,0];
|x2= <sqf>private _camera = "CamCurator" camCreate [0,0,0];
_camera [[camCommand]] "maxPitch 89";
_camera camCommand "maxPitch 89";
_camera [[camCommand]] "minPitch -89";
_camera camCommand "minPitch -89";
_camera [[camCommand]] "speedDefault 0.1";
_camera camCommand "speedDefault 0.1";
_camera [[camCommand]] "speedMax 2";
_camera camCommand "speedMax 2";
_camera [[camCommand]] "ceilingHeight 5000";
_camera camCommand "ceilingHeight 5000";
_camera [[camCommand]] "atl off";
_camera camCommand "atl off";
_camera [[camCommand]] "surfaceSpeed off";
_camera camCommand "surfaceSpeed off";</sqf>
</code>


| [[cameraEffect]], [[camCreate]], [[camCommit]]
|seealso= [[cameraEffect]] [[camCreate]] [[camCommit]]
}}
}}
[[Category:Scripting Commands|CAMCOMMAND]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 19:12, 15 March 2024

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, ASL)
  • "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:
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