{"name":"BIS_fnc_sceneGetObjects","title":"BIS fnc sceneGetObjects","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sceneGetObjects","revid":370889,"updated":"2025-02-21T10:44:04Z","groups":["Broken Functions","Scenes"],"status":"broken","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"> [!WARNING]\n> This function is broken (at least in Arma 3) as it has a typo, displaying an error on each use! (typo **line 63**, `[centrum]` instead of `[_centrum]`).\n\nThis function gets objects (but centre object) positions and direction relative to the choosen object and copies the result to the clipboard via copyToClipboard.\nResult is to format:\n\n```sqf\n[\n    // 11 elements for one object\n    _nameOfObject, _objectClass, _objectToGet, _computedAngle, _distance, _newDir, _vectorUp, _vectorDir, _animation, _elevASL, _elev,\n    _nameOfObject, _objectClass, _objectToGet, _computedAngle, _distance, _newDir, _vectorUp, _vectorDir, _animation, _elevASL, _elev,\n    // ...\n]\n```\n\n> [!IMPORTANT]\n> Please note that the clipboard result is a one-level array, meaning that all parameters are defined one after the other!","syntaxes":[{"syntax":"[centre, radius, type] call BIS_fnc_sceneGetObjects","params":[{"name":"centre","type":"Object or String","description":"object or marker name - **NOT** a Position","type_expr":"Object | String"},{"name":"radius","type":"Number","optional":true,"default":"20","type_expr":"Number","text":"radius: Number - (Optional, default 20)"},{"name":"type","type":"String","optional":true,"default":"\"All\"","description":"objects type (see nearestObjects)","type_expr":"String","text":"type: String - (Optional, default \"All\") - objects type (see nearestObjects)"}],"returns":{"type":"Script Handle","type_expr":"Script Handle"}}],"examples":[{"code":["[player, 20, \"Car\"] call BIS_fnc_sceneGetObjects;"]}],"see_also":["BIS_fnc_sceneSetObjects","BIS_fnc_objectsGrabber","BIS_fnc_objectsMapper"]}