{"name":"getHideFrom","operator":null,"title":"getHideFrom","type":"command","url":"https://community.bistudio.com/wiki/getHideFrom","revid":378610,"updated":"2026-05-13T16:46:20Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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 [[knowsAbout[know about]] enemy.\nIf enemy is null it is some position in front of the object or enemy position.","syntaxes":[{"syntax":"object getHideFrom enemy","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"},{"name":"enemy","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"enemy: Object"}],"returns":{"type":"Array","types":["Array"],"description":"ASLToATL representation of the believed aimPos of the enemy object","text":"Array - ASLToATL representation of the believed aimPos of the enemy object"},"form":"binary","operator":null,"left":{"text":"object","types":["Object"]},"right":{"text":"enemy","types":["Object"]}}],"examples":[{"text":"```sqf\n_pos = player getHideFrom _enemy;\n```","code":["_pos = player getHideFrom _enemy;"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Armed Assault version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}