getHideFrom: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 30: | Line 30: | ||
|x1= <code>_pos = [[player]] [[getHideFrom]] _enemy;</code> | |x1= <code>_pos = [[player]] [[getHideFrom]] _enemy;</code> | ||
|seealso= [[findCover]] [[setHideBehind]] [[isHidden]] | |seealso= [[findCover]] [[setHideBehind]] [[isHidden]] [[knowsAbout]], [[forgetTarget]] | ||
}} | }} | ||
Revision as of 16:10, 20 January 2022
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 knowsAboutforgetTarget
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation