Pudd'n 10 Posted November 15, 2011 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
roguetrooper 2 Posted November 15, 2011 {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
Pudd'n 10 Posted November 15, 2011 {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
Pudd'n 10 Posted November 15, 2011 Thanks very much, I'll give it a try tonight Share this post Link to post Share on other sites
Pudd'n 10 Posted November 15, 2011 {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
roguetrooper 2 Posted November 16, 2011 Check my PM. Share this post Link to post Share on other sites