getHideFrom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - ">Posted on April ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-04-$1")
 
(44 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Returns the [[Position]] where object believes the enemy to be. If there is no direct line of sight between the object and the enemy, this position is extrapolated based on the last known position and speed of the enemy. A returned position of [0,0,0] implies that object does not knowAbout enemy. If enemy is null it is some position in front of the object or enemy position. |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| object '''getHideFrom''' enemy |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= object: [[Object]] |PARAMETER1=
|game5= arma3
|version5= 0.50


|p2= enemy: [[Object]] |PARAMETER2=
|gr1= Object Manipulation


| [[Array]] - [[ASLToATL]] representation of the believed [[aimPos]] of the enemy object |RETURNVALUE=
|descr= Returns the [[Position]] where object believes the enemy to be. If there is no direct line of sight between the object and the enemy, this position is extrapolated based on the last known position and speed of the enemy. A returned position of [0,0,0] implies that object does not knowAbout enemy. If enemy is null it is some position in front of the object or enemy position.


|x1= <code>_pos = [[player]] [[getHideFrom]] _enemy;</code>|Example 1=
|s1= object [[getHideFrom]] enemy
____________________________________________________________________________________________


| [[findCover]], [[setHideBehind]], [[isHidden]], [[knowsAbout]], [[forgetTarget]] |SEEALSO=
|p1= object: [[Object]]


}}
|p2= enemy: [[Object]]
 
|r1= [[Array]] - [[ASLToATL]] representation of the believed [[aimPos]] of the enemy object


<h3 style="display:none">Notes</h3>
|x1= <sqf>_pos = player getHideFrom _enemy;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[findCover]] [[setHideBehind]] [[isHidden]] [[knowsAbout]] [[forgetTarget]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|GETHIDEFROM]]
[[Category:Scripting Commands ArmA|GETHIDEFROM]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on April 25, 2015 - 07:15 (UTC)</dd>
 
<dt></dt>
<dd class="notedate">Posted on 2015-04-25 - 07:15 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">This command is definatlely not broken, at least not in A3 1.42. It functions exactly as the description says it does. The reason why the Z value is elevated is because it represents the units torso. When the unit is prone and spotted, the Z value is much less. Here you can see a perfectly working example of this command [[Talk:getHideFrom#Operation Script Sample]]
<dd class="note">This command is definatlely not broken, at least not in A3 1.42. It functions exactly as the description says it does. The reason why the Z value is elevated is because it represents the units torso. When the unit is prone and spotted, the Z value is much less. Here you can see a perfectly working example of this command [[Talk:getHideFrom#Operation Script Sample]]
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 00:07, 14 May 2023

Hover & click on the images for description

Description

Description:
Returns the Position where object believes the enemy to be. If there is no direct line of sight between the object and the enemy, this position is extrapolated based on the last known position and speed of the enemy. A returned position of [0,0,0] implies that object does not knowAbout enemy. If enemy is null it is some position in front of the object or enemy position.
Groups:
Object Manipulation

Syntax

Syntax:
object getHideFrom enemy
Parameters:
object: Object
enemy: Object
Return Value:
Array - ASLToATL representation of the believed aimPos of the enemy object

Examples

Example 1:
_pos = player getHideFrom _enemy;

Additional Information

See also:
findCover setHideBehind isHidden knowsAbout forgetTarget

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


Posted on 2015-04-25 - 07:15 (UTC)
Benargee
This command is definatlely not broken, at least not in A3 1.42. It functions exactly as the description says it does. The reason why the Z value is elevated is because it represents the units torso. When the unit is prone and spotted, the Z value is much less. Here you can see a perfectly working example of this command Talk:getHideFrom#Operation Script Sample