Jump to content
Matthijs

Forcing trash collection on dead bodies

Recommended Posts

I noticed that it can take a long time before dead bodies in an AI group are removed from their group.

In order to make sure that I only have living men in my group, without deleting the bodies, I do the following:

units _MyGroup select {not alive _x} join grpNull;

However, this creates a new group every time I cleanup a group with casualties.

The alternative I can think of is butt-ugly:

if (isNil "GraveYardGroup") then {
	GraveYardGroup = createGroup [Friendly,False];
};
units _MyGroup select {not alive _x} join grpNull;

 

Isn''t it possible to force  some kind of cleanup without actually deleting the dead bodies?

For example something like this:

TRASHCOLLECT (units _MyGroup select {not alive _x});

 

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

×