{"name":"getHideFrom","title":"getHideFrom","type":"command","url":"https://community.bistudio.com/wiki/getHideFrom","revid":379210,"updated":"2026-10-30T21:16:05Z","groups":["Object Manipulation"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Returns the Position where object believes the enemy to be.\nIf 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.\nA returned position of [0,0,0] implies that object does not know about enemy.\nIf enemy is null it is some position in front of the object or enemy position.","syntaxes":[{"syntax":"object getHideFrom enemy","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"enemy","type":"Object","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"ASLToATL representation of the believed aimPos of the enemy object"},"form":"binary","left":{"text":"object"},"right":{"text":"enemy"}}],"examples":[{"code":["_pos = player getHideFrom _enemy;"]}],"see_also":["findCover","setHideBehind","isHidden","knowsAbout","forgetTarget"],"notes":[{"user":"Benargee","date":"2015-04-25T07:15:00Z","text":"This command is definitely not broken, at least not in A3 1.42. It functions exactly as the description says it does.\nThe 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.\nHere you can see a perfectly working example of this command Talk:getHideFrom#Operation Script Sample."}]}