Jump to content
Coladebote

Delete OPFOR units from the map

Recommended Posts

Hi guys, I'm preparing an individual training maze. Around 80 OPFOR enemies are distributed within the circuit. There may be 8 or 10 players who individually make the tour.

What I want is that if a player is killed in the middle of the circuit, without concluding it, all OPFOR units disappear and the script that places enemy units on the stage is activated again. In this way the next player can start the round with all the units in place.

In short, it is that when PLAYER X dies, all OPFOR UNITS are deleted from the stage.

 

{deleteVehicle _x} forEach [H_1,H_2,H_3,H_4,H_5,H_6,H_7,H_8,H_9,H_10,H_11,H_12];

 

This may be a possible solution, but since there are 80 OPFOR units, I want to avoid the sausage

Can somebody help me. Thank you.

Share this post


Link to post
Share on other sites

Hi, i'm pretty sure this will work:

{deletevehicle _x} foreach (units opfor);

With the 2.02 update the devs expanded the units command, so it can collect all units of a side, too.

Link

  • Like 2

Share this post


Link to post
Share on other sites

It's just what I'm looking for. I'm going to test it to see how it works.

Thanks for the input.

  • Like 1

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

×