Jump to content

Mist respawn stop to work after last update (?)


Recommended Posts

Posted

Hello everybody!
I have some trouble to understanding why in my server a mist function stop to work, apparently about a week ago, didnt know the exact day, just noticed it now douring some test cause some players report me the issue.

I have a simple utilization for mist, a simple respawn after death for some static unit we use for aiming training.

of course the Mist (last version available on Github) have a trigger to load at mission start.
then after 2 second a "do script" file with the follow:

---
if not Group.getByName('groupname')

then

mist.respawnGroup('groupname', true)

end

--

 

thats all, always work from months but stopped, ive try some different options as indicated in Hoggit wiki about it, but doesnt work. https://wiki.hoggitworld.com/view/MIST_respawnGroup

thanks in advice for any help, blueskies my friends!

Posted (edited)

Hello

 Tested yesterday, with Airplane and Helicopter groups

  •     as single line command
  •     through a custom function

with LATE ACTIVATION and GROUP DEAD: it works. Haven't check with STATICS.

Mist, recomended to be loaded with ONCE and TIME AFTER 1.

Edited by ADHS

Democracy was already invented, while Scrat was eating oak fruits.

Posted (edited)

You are welcome. Sure, It will work with Ground type.

Try ONCE and TIME MORE THAN 1. If doesn't work, check the PS below. Further i can gladly setup a mission for you, if you stucked.

PS:
From the scratch:
Mist will respawn the group only AFTER it has been destroyed by you or by ACTION (Explode).

So:
if it is with LATE ACTIVATION, you have 1st: to kill/destroy it and then
have the script to CHECK if it is ALIVE so THEN Mist to respawn it.
if it is  NOT LATE ACTIVATION and you kill it, respawn will happen anyways.

The problem is that DCS assumes "LATE ACTIVATION" groups as "ALIVE".
So, just your 1st check: "if not Group.getByName('groupname')" may fail, hense you won't have it respawned ever.
Once it is a practice target, i suggest: better have it start with the mission normaly and kill it with weapons (respawns will happen for ever).

Edited by ADHS

Democracy was already invented, while Scrat was eating oak fruits.

Posted (edited)

thank you again.
i didnt know why the same code work with an airplane but dont work with ground unit, make me sick.
When im coming at pc i will upload here a test mission with a red ground being shooted by a blue tank and the red one with the mist respawn on it, but didnt work, may i am crazy and blind to dont see some evidence mistake.
i work around the problem using moose with initlimit but require a little more effort.

PS, i always activate the mist respawn not trough a lua file but with a simple "do script" using the text boxt, first the main mist.lua after 1 second and then the little respawn script after 2 second, tryed both once and repetitive, it always worked like that but who know, may you use a single lua file to load the respawn script?

Edited by kira_mikamy
  • Like 1
Posted (edited)

Hello.

Good idea. Upload your mission as you have set it up for Mist. 👍 and we will make it work.

I think the problem is not the script but how you check it.

As for your PS:
Yes, there is an order that you have to follow to use scripts.
f.e: You have to load MIST first, and then to use it's functions.

DO SCRIPT is a fast way to PASTE a condition/redirect to a function/execute a command etc
DO SCRIPT FILE if you have a large file with functions or events etc

For unlimited respawns, use SWITCHED not once.
If SWITCHED check leads you CONDITION to be true (fe GROUP IS DEAD) then it
doesn't matter if in ACTIONS you DO SCRIPT or DO SCRIPT FILE the command
" mist.respawnGroup('groupname', true) ", as long as your script is correct.

Thank you

FYI: I am using MIST, not MOOSE.

Edited by ADHS

Democracy was already invented, while Scrat was eating oak fruits.

  • Recently Browsing   0 members

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