Home   Help Search Login Register  

Author Topic: How to delete all units of a side (Solved)  (Read 2838 times)

0 Members and 1 Guest are viewing this topic.

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
How to delete all units of a side (Solved)
« on: 07 Sep 2011, 16:40:14 »
Ok, this might be a very noobish question, but hey - I think that I still am one! :weeping: And you won't believe me that I didn't find anything about this after 1 hour of searching in the whole net. :)


How can I delete all units of e.g. the side east that are running around in my mission?

Be there thanks to you!
« Last Edit: 01 Jan 2012, 15:14:17 by Undeceived »
Current project: Black Lands (Arma 3)

Offline Ext3rmin4tor

  • Members
  • *
Re: How to delete all units of a side
« Reply #1 on: 07 Sep 2011, 17:24:24 »
Code: [Select]
{if (side _x == east) then {deleteVehicle _x};} forEach allUnits

Put it in a trigger activated by a proper condition when you want the units to be deleted.
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Re: How to delete all units of a side
« Reply #2 on: 10 Sep 2011, 14:02:06 »
Hey, thanks, Ext3rmin4tor! :)

Sorry for the late answer, I'll try it out soon!


Edit some weeks later:

Btw, that worked like a charm! :) Thanks a lot!
« Last Edit: 30 Sep 2011, 07:12:51 by Undeceived »
Current project: Black Lands (Arma 3)