{"name":"BIS_fnc_sceneGetObjects","operator":null,"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","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.\n\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","since":null,"effect":null,"exec":null,"params":[{"name":"centre","type":"Object or String","optional":false,"default":null,"description":"object or marker name - **NOT** a Position","types":["Object","String"],"since":null,"text":"centre: Object or String - object or marker name - **NOT** a Position"},{"name":"radius","type":"Number","optional":true,"default":"20","description":null,"types":["Number"],"since":null,"text":"radius: Number - (Optional, default 20)"},{"name":"type","type":"String","optional":true,"default":"\"All\"","description":"objects type (see nearestObjects)","types":["String"],"since":null,"text":"type: String - (Optional, default \"All\") - objects type (see nearestObjects)"}],"returns":{"type":"Script Handle","types":["Script Handle"],"description":null,"text":"Script Handle"}}],"examples":[{"text":"```sqf\n[player, 20, \"Car\"] call BIS_fnc_sceneGetObjects;\n```","code":["[player, 20, \"Car\"] call BIS_fnc_sceneGetObjects;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_sceneSetObjects","BIS_fnc_objectsGrabber","BIS_fnc_objectsMapper"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Broken Functions","Function Group: Scenes","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}