getHideFrom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
No edit summary
Line 38: Line 38:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 25, 2015 - 07:15 (UTC)</dd>
<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>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 09:15, 25 April 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns the Position where object believes the enemy to be, presumably by extrapolating the expected postion 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.

This command is part of getHideFrom, findCover, setHideBehind non-functional trio.
Groups:
Uncategorised

Syntax

Syntax:
Array = object getHideFrom enemy
Parameters:
object: Object
enemy: Object
Return Value:
Array - format getHideFrom - The array represents some kind of position, however Z coordinate is raised, possibly for futher use in findCover and setHideBehind commands.

Examples

Examples:
Example needed

Additional Information

See also:
findCoversetHideBehindisHidden

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

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