Jump to content
Sign in to follow this  
Low Fat Milk

Script to destroy specific class name(s) in radius

Recommended Posts

Hello all,

 

I have been trying to set up a script that destroys specific class names within an area for a community I am in. The idea is to eventually get the script as part of a module but I am unable to get the base script working yet. Any help reviewing my errors would be appreciated.

 

PolterDrones = ["212th_UAV","212th_UAV_ATK"];

DeadDrones = PolterDrones;

NearbyDeadDrones = nearestObjects [Jammer1, DeadDrones, 500, false, false];

    {

        ExplodedDrones = typeOf _x;

        if (ExplodedDrones in PolterDrones) then {

                _x setDamage 1;

        };  

        forEach _NearbyDeadDrones;

    };

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  

×