camCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|= Game version
|1.00|= Game version
Line 9: Line 9:
|eff= local |Multiplayer Effects=
|eff= local |Multiplayer Effects=


|gr1= Camera Control |GROUP1=
|gr1= Camera Control


| Executes a command on the given ''camera / actor'' object. Known commands for:
| Executes a command on the given ''camera / actor'' object. Known commands for:
Line 35: Line 35:
{{!}}}
{{!}}}


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


| camera [[camCommand]] command |SYNTAX=
| camera [[camCommand]] command


|p1= camera: [[Object]] - see [[camCreate]] |PARAMETER1=
|p1= camera: [[Object]] - see [[camCreate]]


|p2= command: [[String]] - see description |PARAMETER2=
|p2= command: [[String]] - see description


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


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


|x2= <code>[[private]] _camera = "CamCurator" [[camCreate]] [0,0,0];
|x2= <code>[[private]] _camera = "CamCurator" [[camCreate]] [0,0,0];
Line 55: Line 55:
_camera [[camCommand]] "atl off";
_camera [[camCommand]] "atl off";
_camera [[camCommand]] "surfaceSpeed off";
_camera [[camCommand]] "surfaceSpeed off";
</code> |EXAMPLE2=
</code>


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



Revision as of 01:03, 18 January 2021

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:
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

Bottom Section