Jump to content

dimitriov

Members
  • Posts

    1068
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by dimitriov

  1. Hi guys, Developping a script for CA, with a "wingman" tank which obeys you and gives you intel. I am encountering the following problem : On a new mission, if I place everything I need, it works and text messages get displayed. On any other already made mission, it works, but text messages don't display. The script is attached there, the part which interests us is from line 2669 to end. (Yup it's big) An example of function here, very basic for getting the status of the unit : local function statutXLB() timer.scheduleFunction(statutXLB, {}, timer.getTime() + 60) --XL is tank leader --XLB is tank follower local XL = Unit.getByName("XL") local XLB = Unit.getByName("XLBis") if XL and XLB then local XLBlife = Unit.getLife(XLB) local XLID = XL:getID() if XLBlife < 20 and XLBlife > 10 then trigger.action.outTextForGroup(XLID, "106, engin endommagé", 10 , false)--Rejoins formation end if XLBlife < 10 and XLBlife > 5 then trigger.action.outTextForGroup(XLID, "106, engin gravement endommagé", 10 , false) end if XLBlife < 5 and XLBlife > 1 then trigger.action.outTextForGroup(XLID, "106, situation critique", 10 , false) end end end statutXLB() The message will appear on a test mission made for it. But won't on older missions (even done 3 monthes ago). Everything related in the script to unit movement etc works. Functions which mix movement and text work but only for movement on older missions, texts don't appear while they do on the test mission. If I erase everything on the older mission and I only place what I need, it won't work either. Any clue of what's going on there ? Cause I'm starting to really think about a possible bug. Please note that there are other messages of this kind which are displayed in older functions above this, like this part (line 626) for static construction purpose. local function CancelConstruction(constructor_leader,construction_data) if constructor_leader then trigger.action.outTextForGroup(constructor_leader:getGroup():getID(), "construction canceled", 10 ,false) end And these ones DO work ! Here is your challenge For testing purpose, you simply need to run this script, and put a vehicle group with names of unit and group as XL and another as XLBis. You need to be cockpit in the vehicle via CA to get the messages. Nicolas ModpackScript_2022.lua
  2. I think it's something like Time over, something which would mean "After this amount of time is passed"
  3. For now FP dev is on hold, only maintenance.
  4. Ok so script is done. It works this way : call the leader tank XL and the follower XLBis (working on a way to simply assign them using F10 markers ingame) Then it's done. You'll get 4 radio menus in "formation", halt, join, recon 1500 m, recon 2500 m. From this i'm gonna work on a script to improve AI and getting it able to outmaneuver players. Nicolas 106_en.lua
  5. UPDATE V4.8 (fixes lot of bugs)
  6. Yes this is exactly what I'm doing by reading MIST code ^^
  7. Well learning to code a bit on my side and trying to disturb as few as possible the mission makers in my squad ^^ I'll investigate what you explained me here, thank you
  8. Hi guys, I'm currently for CA purpose working on a lil script to implement a tank follower (see file attached). It works very well as of now but I have to use MIST (mist.groupToRandomPoint and mist.getHeading). I know that MIST has been made to improve comfort, and it does it very well. But I'd like the mission maker in my squad to load as few files as needed (this code would be implemented in an already done larger script). So my question is very simple : How would you : 1) Get the heading of a specific vehicle without using MIST 2) Getting it to do something similar to mist.groupToRandomPoint with the heading set All of this without using MIST ? Thank you for your insights Attached is the current script. Nicolas test2.lua
  9. Ah j'ai juste oublié de la virer c'est une farp de marsden... It's fixed. Welcome in the future marty
  10. Comes from the Frenchpack CA part. Disable it for now.
  11. IRL from retex in french army if you loose hydraulics on a puma you land fast or you're gonna die, controls simply are extremely hard and piloting the helo will be impossible( 4 tons pressure). And a Puma weighs from half to minimal kamov weight. A puma has 2 independant hydraulic circuits though. It's already been done surprisingly easily on gazelles though (they actually didn't bother landing until rtb) but a gaz weighs 2 tons, not 10 and the rotor-head weight is not the same. The huey comparison is pertinent as the rotor blades themselves weigh nearly half the helicopter. (steel) Which leads to it being impossible to steer without assistance. Being able to manually direct a huge coaxial system with 6 blades on which is attached a 10 tons piece of metal sounds weird to me too. But hey, won't complain, in its current status 80% times you get hit you loose your hydro... So well...
  12. Yes. Heureusement irl ça fait pas ce genre de flamme lol
  13. Le delai est de 3 min à peu près. Mais assure toi surtout que la cible soit au-delà de 5-7 km. Rayon de zone à 500
  14. Like any other artillery. Either assign it a target location in combind arms or in the editor in advanced action trigger a "fire on coordinates"
  15. @Pappy2Actually I don't think it was a bug. Basically the mortars would be "deployed" if the vehicle goes under red alert, which could happen if it has some ENI in sight.
  16. And too added the ModpackScript.lua DL link on first page
  17. FrenchPack V4.6 available on first page !
  18. Mauvaise langue lol 4.6 under upload
  19. Hi 3 things @clanithosry for late I have a lot of stuff to do here so you can reasonably expect the last fix to come this week I hope. @Aarnomanstatics already are included in the pack. @Igrok-kunthe last 4.5 version works, if it does not it's on your side I'm afraid. Unless ED again broke something.
  20. Yup I forgot that for frenchpack both were combined. I'll upload this week anyway a 4.6 version as I forgot some vehicles on the 4.5 emergency fix.
  21. Ah j'ai peut-être foiré un truc. Je regarderai la semaine pro.
  22. Normalement vous pouvez tour garder. Et oui le leclerc a son optique perso normalement.
×
×
  • Create New...