Jump to content

Most: Does anyone know of a good script for ground clean up?


Recommended Posts

Posted

Does anyone know of a good script that can clean up grounded planes. I have a problem in one of my missions where a few planes land because of low fuel. The rtb and jump out of the place (ww2) and the plane never disappears. It just sits there. I can deactivate them in the ME by deactivating unit under 1 knot but the problem is it deactivates them when they start on the ground since they are under one knot. Thoughts?

Posted

Hello:)

Did you make an attempt with zones for triggers?

I mean zones that activated on change of conditions.

By this way IA have to cross the zone to make the trigger on,and while in the zone the trigger stills off.

Good game.

Posted

I don’t see how zones would work. The conditions for landing and not landing are almost same. I am trying flags and I am able to get them to land and the respawn and respawn again but then they get stuck on respawn every 30 seconds or what ever I had the flag delay time set at

Posted
On 1/19/2021 at 7:39 AM, GR00VYJERRY said:

Does anyone know of a good script that can clean up grounded planes. I have a problem in one of my missions where a few planes land because of low fuel. The rtb and jump out of the place (ww2) and the plane never disappears. It just sits there. I can deactivate them in the ME by deactivating unit under 1 knot but the problem is it deactivates them when they start on the ground since they are under one knot. Thoughts?

 

There are probably several/different ways, but for exemple a "once" trigger, with conditions : list of all AI units concerned has ground altitude > 10, and action : activate a flag.

Then in your actual trigger that deactivate AI you add in conditions this flag in "true" state, so an AI can't be deactivated when speed<1 if all AI have not been airborne first.

Posted

I can get the plane to take off, land, despawn, respawn, repeat. Now I can’t get it to respawn properly when it gets destroyed. It will respawn and despawn repeatedly. 

Posted
6 hours ago, GR00VYJERRY said:

I can get the plane to take off, land, despawn, respawn, repeat. Now I can’t get it to respawn properly when it gets destroyed. It will respawn and despawn repeatedly. 

 

If you respawn these units then they respawn with the flag still true so I guess it's why conditions are met to despawn immediately... in this case the flag has to be turned false when unit gets despawned - and surely it will need 1 flag per unit instead of 1 for all units.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...