Jump to content
Sign in to follow this  
ZZEZ

Clearing area from rocks/trees

Recommended Posts

Hey

Is there a way to clear certain section of the map[or even the entire map] from trees/rocks from within the mission?I searched but didn't find an answer

Share this post


Link to post
Share on other sites

As far as I know, there is no way to eliminate map items. If this is wrong then please let the cat out of the bag.

Share this post


Link to post
Share on other sites

In the editor under - 'empty' - 'objects' - you will find something called grasscutter in 3 different sizes.

That removes the grass and low scrub from areas but I don't think it does rocks or trees?

That's as close as I have got to removing stuff that is placed in the map by default.

I did see a post titled treefeller here recently but don't know if they had written one or were looking for one!

Edited by PELHAM

Share this post


Link to post
Share on other sites

@Pelham - that's funny, all this time I didn't know about the grasscutters. Thanks! I can confirm it removes grass, but it's leaving trees and bushes (on Zargabad map).

Share this post


Link to post
Share on other sites

If the grasscutters wont cut it for you, could'nt you just put a logic and get nearObjects and delete them..

Like:

_objects = getPos Logic1 nearObjects 50;

{deleteVehicle _x;} forEach _objects;

Of course that would remove roads and houses too, but in some situations it might do the trick.

Share this post


Link to post
Share on other sites
If the grasscutters wont cut it for you, could'nt you just put a logic and get nearObjects and delete them..

Like:

_objects = getPos Logic1 nearObjects 50;

{deleteVehicle _x;} forEach _objects;

Of course that would remove roads and houses too, but in some situations it might do the trick.

Just tested that in the OnAct of a waypoint and a trigger and in an init - it didn't work?

Share this post


Link to post
Share on other sites

You cannot deleteVehicle world objects.

_x setDamage 1; may work for some - hideObject _x; might be worth a try too.

Share this post


Link to post
Share on other sites

I tested deletevehicle/setdamage/hideobject, no cigar sadly :(

Share this post


Link to post
Share on other sites

Does nearobjects or nearestobjects return world objects like rocks and trees in the first place? I highly doubt it.

Share this post


Link to post
Share on other sites

I know it works for some objects but not all, with setdamage it will destroy some houses but not all

Share this post


Link to post
Share on other sites

The method I have been using requires the ID tag on the map. Zoom in and click IDs.

Position gameLogicName nearetObject ID_on_map;

Then I just setDamage 1 on the returned object. Don't think delete worked, haven't tried hideObject.

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  

×