Jump to content
Sign in to follow this  
Richard987

Deleting all objects within a certain radius.

Recommended Posts

Hello, i could not find a similar thread, sorry if i missed it.

 

I am looking for a way to delete all editor placed objects within a certain radius mid game. 

 

Example - Player starts at a base that is hand made within the editor. And once he leaves the base and gets some distance, or reaches a certain point, the entire base gets removed.

Share this post


Link to post
Share on other sites

As a simple solution, you can set a trigger that covers the entire territory of the base, and code it to delete everything around him after the player leaves his area.
Choose any player in the activation, and in the type - not present.

Write something like this in the activation field:

_radius = triggerArea thisTrigger select 0;
_list = thisTrigger nearObjects _radius;
{deleteVehicle _x} forEach _list;

 

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Check out this topic,

The provided function can hide/show/remove EDEN layers.

Have fun!

  • Like 2

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
Sign in to follow this  

×