camCommand: Difference between revisions

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


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= local |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= local |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Executes a command on the given ''camera / actor'' object. Known commands for:
|game5= arma2oa
|version5= 1.50


* All camera types - "manual on", "manual off"
|game6= tkoh
* "camera" - "inertia on", "inertia off"
|version6= 1.00
* "seagull" - "landed", "airborne"


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
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50


| camera '''camCommand''' command |= Syntax
|arg= local


|p1= camera: [[Object]] - object of type "camera" or "seagull" |= Parameter 1
|eff= local


|p2= command: [[String]] - one of "manual on", "manual off", "inertia on", "inertia off", "landed" and "airborne" corresponding to the description above. |= Parameter 2
|gr1= Camera Control


| [[Nothing]] |= Return value
|descr= Executes a command on the given ''camera / actor'' object. Known commands:
____________________________________________________________________________________________
 
|x1= <code>_camera '''camCommand''' "manual on";</code> |= Example 1
____________________________________________________________________________________________


| [[cameraEffect]], [[camCreate]], [[camCommit]]  |= See also
{{{!}} class{{=}}"wikitable"
! All cameras !! "Camera" !! "Seagull" !! "CamCurator"
{{!}}- style="vertical-align: top"
{{!}}
* {{hl|"manual on"}}
* {{hl|"manual off"}}
{{!}}
* {{hl|"inertia on"}}
* {{hl|"inertia off"}}
{{!}}
* {{hl|"landed"}} lands the seagull
* {{hl|"airborne"}} makes the seagull fly
{{!}}
* {{hl|"maxPitch (x)"}} (number, in degrees)
* {{hl|"minPitch (x)"}} (number, in degrees)
* {{hl|"speedDefault (x)"}} (number)
* {{hl|"speedMax (x)"}} (number)
* {{hl|"ceilingHeight (x)"}} (number, in meters, ASL)
* {{hl|"atl (x)"}} (on/off)
* {{hl|"surfaceSpeed (x)"}} (on/off)
{{!}}}


}}
{{Feature|informative|The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}}
 
|s1= camera [[camCommand]] command
 
|p1= camera: [[Object]] - see [[camCreate]]


<h3 style="display:none">Notes</h3>
|p2= command: [[String]] - see description
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_camera camCommand "manual on";</sqf>


[[Category:Scripting Commands|CAMCOMMAND]]
|x2= <sqf>private _camera = "CamCurator" camCreate [0,0,0];
[[Category:Scripting Commands OFP 1.99|CAMCOMMAND]]
_camera camCommand "maxPitch 89";
[[Category:Scripting Commands OFP 1.96|CAMCOMMAND]]
_camera camCommand "minPitch -89";
[[Category:Scripting Commands OFP 1.46|CAMCOMMAND]]
_camera camCommand "speedDefault 0.1";
[[Category:Scripting Commands ArmA|CAMCOMMAND]]
_camera camCommand "speedMax 2";
[[Category:Command Group: Camera Control|CAMCOMMAND]]
_camera camCommand "ceilingHeight 5000";
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
_camera camCommand "atl off";
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
_camera camCommand "surfaceSpeed off";</sqf>
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
|seealso= [[cameraEffect]] [[camCreate]] [[camCommit]]
<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 -->

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