setPilotCameraTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ |arma3|= Game name |1.64|= Game version |arg= local|= Argu...")
 
m (Some wiki formatting)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.64


|1.64|= Game version
|arg= local


|arg= local|= Arguments in MP
|gr1= Pilot Camera
____________________________________________________________________________________________


| Sets an area or target to be tracked by the object airplane or helicopter [[A3_Targeting_config_reference#class_pilotCamera|pilotCamera]].  
|descr= Sets an area or target to be tracked by the object airplane or helicopter [[A3_Targeting_config_reference#class_pilotCamera|pilotCamera]].  
To track an object the vehicle has to have appropriate sensors ([[A3_Targeting_config_reference#CfgVehicles|scanners]]) that can detect the given target type.
To track an object the vehicle has to have appropriate sensors ([[A3_Targeting_config_reference#CfgVehicles|scanners]]) that can detect the given target type.
Using [[objNull]] will unlock the camera |= Description
Using [[objNull]] will unlock the camera
____________________________________________________________________________________________


| [[bool]] <nowiki>=</nowiki> object '''setPilotCameraTarget''' target |= Syntax
|s1= object [[setPilotCameraTarget]] target


|p1= object: [[Object]] |=Parameter 1
|p1= object: [[Object]]
|p2= target: [[Object]] or [[Array]] - format PositionASL  |=Parameter 2


| [[Bool]]  |= Return value
|p2= target: [[Object]] or [[Array]] - format PositionASL
____________________________________________________________________________________________
|x1 = <code>_pilotCamTrack = [[vehicle]] [[player]] '''setPilotCameraTarget''' [2100,4200,4.2];</code> |= Example 1
|x2 = <code>_pilotCamTrack = [[vehicle]] [[player]] '''setPilotCameraTarget''' BIS_Edita;</code> |= Example 2
____________________________________________________________________________________________
| [[hasPilotCamera]], [[getPilotCameraPosition]], [[getPilotCameraDirection]], [[getPilotCameraRotation]], [[getPilotCameraTarget]], [[setPilotCameraDirection]], [[setPilotCameraRotation]] |= See also


}}
|r1= [[Boolean]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_pilotCamTrack = vehicle player setPilotCameraTarget [2100,4200,4.2];</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>_pilotCamTrack = vehicle player setPilotCameraTarget BIS_Edita;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[hasPilotCamera]] [[getPilotCameraPosition]] [[getPilotCameraDirection]] [[getPilotCameraRotation]] [[getPilotCameraTarget]] [[setPilotCameraDirection]] [[setPilotCameraRotation]]
 
}}
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17:28, 13 May 2022

Hover & click on the images for description

Description

Description:
Sets an area or target to be tracked by the object airplane or helicopter pilotCamera. To track an object the vehicle has to have appropriate sensors (scanners) that can detect the given target type. Using objNull will unlock the camera
Groups:
Pilot Camera

Syntax

Syntax:
object setPilotCameraTarget target
Parameters:
object: Object
target: Object or Array - format PositionASL
Return Value:
Boolean

Examples

Example 1:
_pilotCamTrack = vehicle player setPilotCameraTarget [2100,4200,4.2];
Example 2:
_pilotCamTrack = vehicle player setPilotCameraTarget BIS_Edita;

Additional Information

See also:
hasPilotCamera getPilotCameraPosition getPilotCameraDirection getPilotCameraRotation getPilotCameraTarget setPilotCameraDirection setPilotCameraRotation

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