camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(66 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CAMCOMMAND]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|CADETMODE]]
[[Category:Scripting Commands OFP 1.46|CAMCOMMAND]]
[[Category:Scripting Commands ArmA|CAMCOMMAND]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066">'''''camera'' camCommand ''command'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''camera:''' [[Object]]
|game5= arma2oa
|version5= 1.50


'''command:''' [[String]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|arg= local


'''Description:'''
|eff= local


Execute '''command''' on given '''camera / actor''' object.
|gr1= Camera Control


For all types '''"manual on"''' and '''"manual off"''' commands are recognised.
|descr= Executes a command on the given ''camera / actor'' object. Known commands:


For '''"camera"''' type, command is one of: '''"inertia on"''', '''"inertia off"'''.
{{{!}} 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)
{{!}}}


For seagull, command is one of: '''"landed"''', '''"airborne"'''.
{{Feature|informative|The [[camCommand]] effect is immediate and does not need [[camCommit]]/[[camCommitPrepared]].}}


|s1= camera [[camCommand]] command


'''Example:'''
|p1= camera: [[Object]] - see [[camCreate]]


_camera '''camCommand''' '''"Manual on"'''
|p2= command: [[String]] - see description
 
|r1= [[Nothing]]
 
|x1= <sqf>_camera camCommand "manual on";</sqf>
 
|x2= <sqf>
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";
</sqf>
 
|seealso= [[cameraEffect]] [[camCreate]] [[camCommit]]
}}

Latest revision as of 21:36, 2 September 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