Jump to content

Recommended Posts

Is there a trick to deleting agents created with createAgent? I've spawned some on the map, and then delete them all later using -

 

{ deleteVehicle agent _x } forEach agents;

They disappear, but they're still marked on the map in Spectator mode -

 

agent.jpg

Share this post


Link to post
Share on other sites

Here's another piece of info - these agents are spawned in as "CIV" NPCs. The actual enemy units that are spawned in are cleared with:

{deleteVehicle _x; sleep 0.01;} foreach (allunits select {side _x == opfor});

For the agents, I use:

{ deleteVehicle agent _x } forEach agents;

Units are cleared, agents remain on the map as (in Spectator Mode) as those AI markers.

 

Perhaps I shouldn't be worried, because those markers don't take up processing power? It seems like they would, as they remain in memory in some way.

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

×