dlder 13 Posted January 24, 2021 Is it possible to use the Eden IDs inside scripts? If I want to delete a whole bunch of objects via trigger for instance? https://community.bistudio.com/wiki/Eden_ID This Number remains the same even after saving and loading the scenario. -> so this seems to be the "safest" way to do that, but: _nObject = [0,0,0] nearestObject 123456; doesnt work(?) Share this post Link to post Share on other sites
Larrow 2794 Posted January 24, 2021 7 hours ago, dlder said: Is it possible to use the Eden IDs inside scripts? No, Eden IDs are not available during a mission, only during an editing session. 1 1 Share this post Link to post Share on other sites
dlder 13 Posted January 25, 2021 22 hours ago, Larrow said: No, Eden IDs are not available during a mission, only during an editing session. Hm, do you know of any other possibility to quickly select a bunch of placed objects? Can I delete Eden layers via script? Share this post Link to post Share on other sites
dlder 13 Posted January 25, 2021 Sry, I should've looked first; the idea with layers should work: https://community.bistudio.com/wiki/getMissionLayerEntities 1 Share this post Link to post Share on other sites
dlder 13 Posted January 25, 2021 Yep, works like a charm! 🙂 Share this post Link to post Share on other sites
pierremgi 4737 Posted January 25, 2021 On 1/24/2021 at 9:45 AM, dlder said: Is it possible to use the Eden IDs inside scripts? If I want to delete a whole bunch of objects via trigger for instance? https://community.bistudio.com/wiki/Eden_ID This Number remains the same even after saving and loading the scenario. -> so this seems to be the "safest" way to do that, but: _nObject = [0,0,0] nearestObject 123456; doesnt work(?) This should work... if your position stays within 50 m of the object (more exactly, the command searches in a 50m radius). so [0,0,0] is not a good place to start a search. Share this post Link to post Share on other sites
dlder 13 Posted January 25, 2021 2 hours ago, pierremgi said: This should work... I dunno... it works with layers it seems, so I work with that now. But thx anyway! Share this post Link to post Share on other sites
Larrow 2794 Posted January 26, 2021 21 hours ago, pierremgi said: This should work... No it does not, using a number with nearestObjects is a map object ID not an Eden object ID. Two totally different things. Plus using map IDs is not advised( hence the reason they where removed from viewing in Eden ) as they can possibly change at any game update. 1 Share this post Link to post Share on other sites
pierremgi 4737 Posted January 26, 2021 I was on map Id... Share this post Link to post Share on other sites