Jump to content

Prof_hilactic

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Prof_hilactic

  1. Sven, your modification of Mist worked, the planes now do carry over their mission after respawn. However DCS still crash on me when I end the mission. It looks like the log book does not like the fact that a respawned plane had killed a unit. I don t know if it s a case of 2 units getting the same ID or something else.
  2. Grimes, I had the same problem as Xcom but with DynAdd. The 2nd respawn the planes do not carry out their mission. In the original post I had included a test mission
  3. Yes it is possible. You can use MIST http://forums.eagle.ru/showthread.php?t=98616 you can modify St3v3 script for the respawn tanker http://forums.eagle.ru/showthread.php?t=112170
  4. Grimes, Thank you for the explanation on the mist.tostringMGRS. However it does not work with mist.addEventHandler. I get the error: attempt to call field 'f' (a table value) but if I use world.addEventHandler it works like a charm. is there a bug with mist.addEventHandler?
  5. Grimes, I found some typo in the manual: string mist.tostringMGRS(table t, number n) ... Example returned value: mist.utils.toStringMGRS(table, 0) returns 38T AB mist.utils.toStringMGRS(table, 3) returns 38T AB 123 123 mist.utils.toStringMGRS(table, 5) returns 38T AB 12345 12345 so is it mist.tostringMGRS or mist.utils.toStringMGRS? It is the same with mist.tostringLL the example is the same as mist.tostringMGRS I am trying to use the different mist.tostring... function to get the position of a unit firing a Kh-58. So far I manage to get a message saying which unit fire which weapons but I cannot get the position. What do I need to add to this code: SEAD_launch = {} function SEAD_launch:onEvent(event) if event.id == world.event.S_EVENT_SHOT then SEAD_unit = event.initiator SEAD_unitName = Unit.getName(SEAD_unit) SEAD_unitGroup = SEAD_unit:getGroup() _SEADmissile = event.weapon _SEADmissileName = _SEADmissile:getTypeName() if _SEADmissileName == "KH-58" or _SEADmissileName == "Kh-25ML" then trigger.action.outText("Warning " ..string.format(SEAD_unitName).. " launching " ..string.format(_SEADmissileName),10) trigger.action.setUserFlag('10', true) end end end mist.addEventHandler(SEAD_launch) I am sure there is something clever to do with mist.msgBullseye or other mist.msg... but I can t get them to work either. P.S: I have no knowledge at all about programing so if the code above is pure garbage please educate me! (i.e do I really need to add local to everything?)
  6. Thank you Grimes and St3v3f for the effort it is greatly apreciated. I have 2 problems with Dynadd and I don't know if it s a bug or a lack of skill on my part 1) I have a group of Su-25T attacking randomly targets one at a time. Once one group is destroyed the Su-25T go back to base and respawn via Dynadd. So far so good. However the 2nd time it looks like the order attack group is not carried out. (Also the destoyed group is not respawning but it s a mistake on my part with the flag). 2) every time i exit the mission to go back to the editor DCS crashed. I wonder if it s not due to DynAdd in 1.2.6 (in 1.2.5 with mist 3.1 I had no problem). I tried other missions without Dynadd and there is no crash. Also how do I add mist.schedulefunction with dynadd? mist.scheduleFunction(dynadd(Group), {101, true}, timer.getTime() + 40) Thank you. test randomtarget.miz
×
×
  • Create New...