switchCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SWITCHCAMERA]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SWITCHCAMERA]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SWITCHCAMERA]]
[[Category:Scripting Commands ArmA|SWITCHCAMERA]]
 
 
<h2 style="color:#000066">'''''unit ''switchCamera ''mode'''''</h2>
 
 
'''Operand types:'''
 
'''unit:''' [[Object]]
 
'''mode:''' [[String]]
 
'''Type of returned value:'''


[[Nothing]]
| ofp |= Game name


'''Description:'''
|1.00|= Game version
 
____________________________________________________________________________________________
Switch camera to given '''vehicle / camera'''.
 
'''Mode''' is one of:


| Switch camera to given vehicle / camera. Mode is one of:
* '''"INTERNAL"''' (1st person)
* '''"INTERNAL"''' (1st person)
* '''"GUNNER"''' (optics / sights)
* '''"GUNNER"''' (optics / sights)
* '''"EXTERNAL"''' (3rd person)
* '''"EXTERNAL"''' (3rd person)
* '''"GROUP"''' (group)
* '''"GROUP"''' (group)
|= Description
____________________________________________________________________________________________
| unit '''switchCamera''' mode |= Syntax
|p1= unit: [[Object]] |= Parameter 1
|p2= mode: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>loon1 switchCamera "External"
'Comments If you '''switchCamera''' to a group leader, you can control his group as if it were your own.</pre> |= Example 1
____________________________________________________________________________________________


'''Example:'''
|  |= See also


loon1 '''switchCamera''' '''"External"'''
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Comments''
<!-- Note Section END -->
</dl>


If you [[switchCamera]] to a group leader, you can control his group as if it were your own.
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SWITCHCAMERA]]
[[Category:Scripting Commands OFP 1.96|SWITCHCAMERA]]
[[Category:Scripting Commands OFP 1.46|SWITCHCAMERA]]
[[Category:Scripting Commands ArmA|SWITCHCAMERA]]

Revision as of 00:56, 2 August 2006

Hover & click on the images for description

Description

Description:
Switch camera to given vehicle / camera. Mode is one of:
  • "INTERNAL" (1st person)
  • "GUNNER" (optics / sights)
  • "EXTERNAL" (3rd person)
  • "GROUP" (group)
Groups:
Uncategorised

Syntax

Syntax:
unit switchCamera mode
Parameters:
unit: Object
mode: String
Return Value:
Nothing

Examples

Example 1:
loon1 switchCamera "External" 
'Comments If you '''switchCamera''' to a group leader, you can control his group as if it were your own.

Additional Information

See also:
See also needed

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

Notes

Bottom Section