{"name":"getPosASL","title":"getPosASL","type":"command","url":"https://community.bistudio.com/wiki/getPosASL","revid":377441,"updated":"2026-01-02T06:46:51Z","groups":["Positions"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50","ofp":"1.99"},"since":"ofpe 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the object position height above sea level.","syntaxes":[{"syntax":"getPosASL object","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"PositionASL","type_expr":"PositionASL"},"form":"unary","right":{"text":"object"}}],"examples":[{"code":["_aslPos = getPosASL player;"]},{"code":["hint format [\"position above sea level: %1\", (getPosASL player) select 2];"]}],"see_also":["getPosASLVisual","setPosASL","setPosASL2","position","getPos","getPosATL","getPosASLW","visiblePosition","visiblePositionASL","getTerrainHeightASL","setUnitFreefallHeight"],"notes":[{"user":"Dr Eyeball","date":"2007-02-23T07:38:00Z","text":"`getPosASL _obj select 2;` might sometimes return the vertical position above sea level, but over land for stacked objects, it returns the vertical position above the object beneath it or at least affected by this offset.\nThe same problem exists for getPos. There was a *discussion* (dead link) thread in the BIS forums which suggested the use of the command modelToWorld instead to get around this issue where an absolute vertical position is required. ArmA Ver **1.02**."},{"user":"SilentKiller","date":"2014-03-27T19:19:00Z","text":"According to Code Optimisation, this command is among the fastest (2x) and should be used (or getPosATL or, best performance-wise, getPosWorld) instead of getPos/position."}]}