Jump to content

Unit DEAD when it's not activated?? (BUG?)


Recommended Posts

Posted

DCS V1.5, up to date, Installed modules: FC3/A10C

 

Well, this simple mission file talks by itself.

 

For every pairs of Bot's death, a new pair should appear.

But the problem is... they're appearing all together, as if every group was dead

Treino AA.miz

Who cares...

Posted

For starters the triggers use "Group Dead" and not "Unit dead".

 

I think whats happening is that when you use scripting to respawn a group, it is effectively overwrites the old group very quickly, and for a moment that group is considered "dead" so it triggers the respawn. It goes down the triggers really quickly as each group becomes dead for a moment before respawning. If you check the log afterward the two first aircraft Pilot 3 and 7 have two "Engine Startup" events, which means they spawned twice.

 

 

Change the first trigger that spawns the AI to simply use group activate instead of mist.respawnGroup() and you should get the results you want.

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

Nice Grimes! It worked!

 

Well, i have another doubt.

If i want a fighter doing escort for another plane, and i want a new escort every time the old was killed, what do i need to change in spawn line?

 

I mean... I've put the plane on editor with "Escort" task, protecting AWACs, but when it spawns it goes directly its home base.

Used this line "mist.rspGrp('Escort_unit_name', true)" or even "mist.rspGrp('Escort_unit_name')" , nothing seems to work...

 

Thanks Btw

Who cares...

Posted

Truth be told I don't think I've ever tested it with tasks assigned to a specific "target" like that. Its always been very basic tasks that allow groups to attack targets of a given attribute.

 

Are you spawning the AWACs at the same time or is it an existing AWACs in the mission. If both are spawning I'd try to spawn the escort shortly after the AWACS as another script or to assign the escort task after it spawns. You can change the task value of true to a number value, which delays when the group will be assigned their task instead of spawning with it.

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

The mission logic is as the follows:

Awacs Has 4 waypoints, in the begin of the mission it takes off and drives to the 1st wp (where trigger is).. in the 4th it switch again to the 1st and keeps patrolling til bingo.

In the first pass and in every cycle/pass trough the 1st wp, a trigger checks if Escort is alive/active and then spawns it if needed. I already made it work before long time ago and worked fine, but i'm not sure how and i don't have that mission anymore... Plus, about the original question in this post, i've checked my old missions and i used to spawn planes directly trough script and it used to work. I mean, maybe this lately MIST versions things has changed (even in this case of escort task).

 

Thank you

Who cares...

  • Recently Browsing   0 members

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