Jump to content

Is it possible to make a plane A.I. controlled if no player connects?


Recommended Posts

Posted

As far as i know this is only possible in running a mission in local mode (single player or started in the editor). In LAN or Internet the units will de-spawn and respawn on the set start location (multi-player client).

Posted

You could create separate flights that have the same sort of objectives and then spawn those flights on the condition of players being present or not.

 

Once> Time More than 300 and time less than 360 and Unit Is Dead (Player aircraft)> Group Activate(AI replacement)

 

It allows some buffer to allow players to join and select an aircraft, if they dont in that time frame then an AI will respawn to fill the players role.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
Once> Time More than 300 and time less than 360 and Unit Is Dead (Player aircraft)> Group Activate(AI replacement)

 

This indeed works, but I'm wondering if there's a way of deactivating the player slots / flights when the AI flights have spawned. Any ideas how to do that?

The DCS Mi-8MTV2. The best aviational BBW experience you could ever dream of.

Posted

Well if you set it up so that player aircraft groups had zero respawns, and then used a flag, say PlayerGroup_x_State. Set the flag to be true if player plane is alive and false if not. I would use the same flag evaluation to do both the player despawn and the AI spawn.

 

So structurally something like

 

t=0 set PlayerPresentFlag to false

 

t = 300 evaluate the state of the player group, if group is alive set PlayerPresentFlag to true.

 

t = 301 if PlayerPresentFlag = false remove PlayerGroup

if PlayerPresentFlag = false spawn AI Group

 

That's not the terminology the mission editor would use, but that sort of logical structure should work, I think.

Callsign "Auger". It could mean to predict the future or a tool for boring large holes.

 

I combine the two by predictably boring large holes in the ground with my plane.

  • Recently Browsing   0 members

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