missileTargetPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Some wiki formatting)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.92
|1.92
 
|arg=
 
|eff=
 
|serverExec=


|gr1= Weapons
|gr1= Weapons


| Returns a guided missile's target position.
|descr= Returns a guided missile's target position.


| [[missileTargetPos]] munition
|s1= [[missileTargetPos]] munition


|p1= munition: [[Object]]
|p1= munition: [[Object]]


| [[Array]] - position in format [[PositionASL]]
|r1= [[Array]] in format [[Position#PositionASL|PositionASL]]


|x1= <code>_pos = [[missileTargetPos]] missile1;</code>
|x1= <sqf>private _targetDistance = vehicle player distance missileTargetPos missile1;</sqf>


| [[missileTarget]], [[setMissileTargetPos]], [[setMissileTarget]]
|seealso= [[missileTarget]] [[setMissileTargetPos]] [[setMissileTarget]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|User Name]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<!-- Appropriate categories go here -->
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 20:25, 3 May 2022

Hover & click on the images for description

Description

Description:
Returns a guided missile's target position.
Groups:
Weapons

Syntax

Syntax:
missileTargetPos munition
Parameters:
munition: Object
Return Value:
Array in format PositionASL

Examples

Example 1:
private _targetDistance = vehicle player distance missileTargetPos missile1;

Additional Information

See also:
missileTarget setMissileTargetPos setMissileTarget

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