getHideFrom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 15: Line 15:
|p2= enemy: [[Object]]
|p2= enemy: [[Object]]


| [[Array]] - [[ASLToATL]] representation of the believed [[aimPos]] of the enemy object
|r1=[[Array]] - [[ASLToATL]] representation of the believed [[aimPos]] of the enemy object


|x1= <code>_pos = [[player]] [[getHideFrom]] _enemy;</code>
|x1= <code>_pos = [[player]] [[getHideFrom]] _enemy;</code>

Revision as of 21:46, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
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:
findCoversetHideBehindisHiddenknowsAboutforgetTarget

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 April 25, 2015 - 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