Jump to content
dlder

Using Eden IDs in scripts?

Recommended Posts

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
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.

  • Confused 1
  • Sad 1

Share this post


Link to post
Share on other sites
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

Yep, works like a charm! 🙂

Share this post


Link to post
Share on other sites
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
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
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.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×