Jump to content

Help with Client & AI Unit Toggles in MP


GeoS72

Recommended Posts

I am looking for help with switching (toggling) between a Client aircraft and an AI aircraft. I am at a loss when searching for this topic. Any advise would be greatly appreciated. Could this be achieved?

This is my goal for a multiplayer mission:

1. A base is protected by waves of AI CAP.
2. This base also has slots for Clients to join.
3. Simple Slot Blocker will be used to allow/deny Client slots.
4. When a Client is not in a slot, the AI would spawn when an opponent is within its trigger zone.
5. When a Client is in a slot, the AI would be turned off. Essentially, the Client assumes CAP duties.
6. When a Client is no longer present, the next wave of AI CAP would resume when an opponent is within its trigger zone.

An example in the Persian Gulf map:
Blue forces control Bandar Abbas and Red forces control Lar. Lar has 3 waves of AI CAP, which are triggered to spawn when a Blue Client from Bandar Abbas flies into its trigger zone.

If a Client wants to fly a Red aircraft from Lar, then Simple Slot Blocker will allow it since Lar's Red status has Red Client slots unlocked. This would shut off when the base is captured by Blue forces. It may not be relevant, but it is disclosed just in case.

When a Client is flying a Red aircraft from Lar, I'd like to turn off the Red AI because I don't want the Blue Client to fight both Red units (Client and AI). Once a Red Client no longer plays the slot from Lar, then the next AI would resume CAP functions when a Blue Client from Bandar Abbas flies into its trigger zone.

Did my explanation help? Again, any recommendations or links would help me out a lot!

Link to comment
Share on other sites

  • 1 month later...

I did more testing but have come up short. I can suppress the AI CAP from spawning when a Client is in a jet but once the Client is gone then the AI CAP does not resume.

For clarity, I attached screenshots of my trigger system from the Mission Editor. Again, any insight would be greatly appreciated!

Screen_211210_110104a.png Switched Trigger: If Red Client Present then turn Flag 971 ON and turn Flag 972 OFF. Screen_211210_110158a.png Switched Trigger: If Red Client is Not Present then turn Flag 971 OFF and turn Flag 972 ON. Screen_211210_110257a.png Once Trigger 1st Wave CAP: If Flag 971 is FALSE (Red Client Alive) and Flag 972 (Red Client Dead) is TRUE then spawn AI Units.
Additional Conditions that work: Part of Blue Coalition within LAR's CAP Zone and if Flag 951 is FALSE (Lar captured). Screen_211210_110417a.png Once Trigger 2nd Wave CAP: Very similar trigger mechanics to 1st Wave. Added 2 minute time delay before 2nd Wave spawns.
Time Since Flag 952 = 120sec & Time Since Flag 953 = 120sec are the time delays after 1st Wave CAP is dead.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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