Jump to content
Zorg_DK

How do I make units disappear?

Recommended Posts

Hi, I'm new to making missions, and I'm having lots of fun learning the editor in Arma3.

I want to make some units disappear after they've completed their waypoints, how do I do that? Putting dismissed in the waypoint type doesn't seem to do anything.

Cheers.

Share this post


Link to post
Share on other sites

In the on activation on the waypoint you can write

{deleteVehicle _x} forEach thisList

Share this post


Link to post
Share on other sites

Thanks, I'll try that.

---------- Post added at 01:53 PM ---------- Previous post was at 01:52 PM ----------

It made the driver of a quad bike disappear, the quad bike is left with engine running. Can you make the quad bike disappear as well?

Share this post


Link to post
Share on other sites

Maybe try this (or something similar) instead:

{
 if(vehicle _x != _x) then { 
   deleteVehicle (vehicle _x);
 };
 deleteVehicle _x;
} forEach thisList;

Share this post


Link to post
Share on other sites

{deletevehicle _x} foreach crew quadbike + [quadbike];

If you want to delete the units mounted on a quadbike + the quadbike itself. "quadbike" is the name of the Quad.

Share this post


Link to post
Share on other sites

Thanks for the help all, much appreciated.

Share this post


Link to post
Share on other sites

am i a little bit too late for the party? i tried to insert some of the mentioned scripts in the init-section but guess i am doing something wrong

Share this post


Link to post
Share on other sites

@Springfield86    Welcome on forum. init section of what? It's always better when people say exactly what they are scripting where / when / what for... SP or MP (almost never mentioned).

Share this post


Link to post
Share on other sites
3 minutes ago, pierremgi said:

@Springfield86    Welcome on forum. init section of what? It's always better when people say exactly what they are scripting where / when / what for... SP or MP (almost never mentioned). 


Hello and thank you @pierremgi i found a helpfull video on youtube regarding this topic:
 

 

Share this post


Link to post
Share on other sites

That works but it's a little bit outdated (2016)

As guidelines says:

Threads older than 4 months should not be dug up unless something significant is being added...

let's add: deleteVehicleCrew command, far better in MP and some dead units in crew.

Follow example 2 in deleteVehicle  😉

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

×