Jump to content
Sign in to follow this  
Pudd'n

Delete all units at set distance from players

Recommended Posts

Could anyone help me, I've had a look around but not found anything that really fits the bill.

I require a line of code to put into a trigger that will delete all INDEPENDENT units that are more than 1000m from PLAYER_001 AND PLAYER_002.

Thanks in advance.

Share this post


Link to post
Share on other sites
{if ((side _x == resistance) and ((_x distance PLAYER_001) > 1000) and ((_x distance PLAYER_002) > 1000)) then {deletevehicle _x}} forEach allunits;

Share this post


Link to post
Share on other sites
{if ((side _x == resistance) and ((_x distance PLAYER_001) > 1000) and ((_x distance PLAYER_002) > 1000)) then {deletevehicle _x}} forEach allunits;

Thanks very much, I'll give it a try tonight.

Share this post


Link to post
Share on other sites

Thanks very much, I'll give it a try tonight

Share this post


Link to post
Share on other sites

{if ((side _x == resistance) and ((_x distance PLAYER_001) > 100) and ((_x distance PLAYER_002) > 100)) then {deletevehicle _x}} forEach allunits;

Returns: Type Nothing: Expected Bool

Anyone?

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  

×