{"name":"BIS_fnc_boundingBoxCorner","operator":null,"title":"BIS fnc boundingBoxCorner","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_boundingBoxCorner","revid":292391,"updated":"2021-08-07T23:55:04Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"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":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns position of all four bounding box corners OR Returns position of the nearest corner to the given position","syntaxes":[{"syntax":"[param0, param1] call BIS_fnc_boundingBoxCorner","since":null,"effect":null,"exec":null,"params":[{"name":"param0","type":"Object","types":["Object"],"optional":false,"default":null,"description":"object with bounding box","since":null,"text":"0: OBJECT - object with bounding box","source":"docblock"},{"name":"param1","type":"Array, Object","types":["Array","Object"],"optional":false,"default":null,"description":"position for which the nearest corner is returned","since":null,"text":"1: ARRAY or OBJECT - position for which the nearest corner is returned","source":"docblock"}],"returns":{"type":"Array","types":["Array"],"description":null,"text":"ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;","source":"docblock"},"inferred":true}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Functions"],"docblock":{"author":null,"description":"Returns position of all four bounding box corners OR Returns position of the nearest corner to the given position","params":[{"index":0,"name":null,"types":["Object"],"optional":false,"default":null,"description":"object with bounding box","text":"OBJECT - object with bounding box"},{"index":1,"name":null,"types":["Array","Object"],"optional":false,"default":null,"description":"position for which the nearest corner is returned","text":"ARRAY or OBJECT - position for which the nearest corner is returned"}],"returns":{"types":["Array"],"text":"ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"Description:\n    Returns position of all four bounding box corners\n    OR\n    Returns position of the nearest corner to the given position\n\nParameter(s):\n    _this: OBJECT - object with bounding box\n    OR\n    _this: ARRAY in format:\n        0: OBJECT - object with bounding box\n        1: ARRAY or OBJECT - position for which the nearest corner is returned\nReturns:\n    ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;"},"filled_from_docblock":["description","params","syntax","returns"]}