Jump to content
Sign in to follow this  
madrussian

Question regarding Mass Destruction

Recommended Posts

So it's possible to level a whole town in terms of buildings with a few lines of script:

_things = ((position player) nearObjects 500) - [player];
{
    _x setDamage 1;
} foreach _things;

However, all the fences remain standing. Anyone know how to knock down fences too (via script)? Any help greatly appreciated as always. :)

DOUBLE EDIT (SOLVED):

Turns out that nearObjects does not return fence segments. So they were not in my _things list after all. Thus they could not be destoryed.

Using nearestObjects instead seems to detect everything and works like a charm:

_things = nearestObjects [player, [], 500];

Edited by MadRussian

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  

×