Jump to content

Majinbot

Members
  • Posts

    919
  • Joined

  • Last visited

Everything posted by Majinbot

  1. I cant try the script at the moment but you can try: Trigger: once time more do script: In red the group name EventHandler = {} function EventHandler:onEvent(event) if event.id == world.event.S_EVENT_SHOT then local TGroup = Group.getByName('[color="Red"]PlayerGroup[/color]') local TGroupid = TGroup:getID() local unit = event.initiator if unit and unit:getGroup(TGroup) then local arma = event.weapon:getDesc().guidance local categoria = event.weapon:getDesc().category if arma == 4 then trigger.action.outTextForGroup(TGroupid, "FOX 1", 8) end if arma == 2 then trigger.action.outTextForGroup(TGroupid, "FOX 2", 8) end if arma == 3 then trigger.action.outTextForGroup(TGroupid, "FOX 3", 8) end if categoria == 3 then trigger.action.outTextForGroup(TGroupid, "PICKLE", 8) end end end end world.addEventHandler(EventHandler) Forgot sound file add: trigger.action.outSoundForGroup(TGroupid, "soundfile.ogg" )
  2. I'm not sure I understand but I have a trigger for what it seems to me that you want to achieve .. EventHandler = {} function EventHandler:onEvent(event) if event.id == world.event.S_EVENT_SHOT and event.initiator == Unit.getByName('Player') then local arma = event.weapon:getDesc().guidance local categoria = event.weapon:getDesc().category if arma == 4 then trigger.action.outTextForCoalition(coalition.side.BLUE, "FOX 1", 8) trigger.action.outSoundForCoalition(coalition.side.BLUE, 'radio click.ogg') end if arma == 2 then trigger.action.outTextForCoalition(coalition.side.BLUE, "FOX 2", 8) trigger.action.outSoundForCoalition(coalition.side.BLUE, 'radio click.ogg') end if arma == 3 then trigger.action.outTextForCoalition(coalition.side.BLUE, "FOX 3", 8) trigger.action.outSoundForCoalition(coalition.side.BLUE, 'radio click.ogg') end if categoria == 3 then trigger.action.outTextForCoalition(coalition.side.BLUE, "PICKLE", 8) trigger.action.outSoundForCoalition(coalition.side.BLUE, 'radio click.ogg') end end end world.addEventHandler(EventHandler)
  3. excellent work
  4. With the last firmware I use edge2 - 5% to add 4 buttons to the "gate cont" pov, with good results and feeling.
  5. Una mancanza che ho notato è che la portaerei non gira controvento da sola, devi per forza impostare la rotta manualmente nell'editor o usare uno script...
  6. Really strange, I'll try to remove the hornet and reinstall it. It doesn't work even if I use scripts like moose or cltd to lase the target with a jtac...
  7. The procedure I follow, as you can see in the track: AG mode, all 3 forward switches (tgp, laser). I select the MAV, I enter the code, the MAV moves to the target selected by the TGP, I shoot the laser, the word LTD/R comes out, but in the MAV E display the full green square does not come out, and I can't shoot it, same thing with the GBU, it doesn't follow the laser, even if I press the trigger and the word LTD/R comes out. I haven't used the hornet for a while, but I've never had problems before..
  8. I tried several times, I created a simple mission to test it but neither the agm-65E nor the gbu-12 are guided by the hornet tgp laser. Strange even the flir pov button I bound to the WH throttle doesn't work anymore. Open beta, already repair/cleanup, no mods. Bug pod.trk
  9. You loaded 2 different scripts for the same purpose, and then entered the names of the groups not the units... NEW_PG_REAPER_MOVING-TARGET_TEST.miz
  10. Can you post the mission, I tested the script and it was working...
  11. Or you can use a simple land event script like: EventHandler = {} local LandingOne = Unit.getByName('[color="red"]Player[/color]') function EventHandler:onEvent(event) if event.id == world.event.S_EVENT_LAND and event.initiator == LandingOne and event.place:getName() == '[color="Red"]Stennis[/color]' then trigger.action.outText(LandingOne:getName().." is landed on "..event.place:getName(),20) end end world.addEventHandler(EventHandler)
  12. Doesnt matter what drone you'll use, only change: local Predator = UNIT:FindByName("[color="Red"]drone[/color]") [color="Red"]-- reaper unit name[/color] local TestScheduler = SCHEDULER:New( nil, function() -- t local Coordinate = UNIT:FindByName("[color="red"]enemy[/color]"):GetVec2() [color="red"]-- tank unit name[/color] local DCSTask = Predator:TaskOrbitCircleAtVec2(Coordinate, 2500, 40) Predator:PushTask(DCSTask, 1) end, {}, 1, 5 )
  13. You'll need a scheduler: https://forums.eagle.ru/showpost.php?p=4310486&postcount=2072
  14. From the manual: GROUP ATTACK. When checked, the entire flight group will participate in the attack of the target. By default, each aircraft in a flight group is assigned one target.
  15. Infatti pure io sono rimasto con la manetta del warthog, che forse è ancora la migliore in circolazione, fino all'arrivo dell VKB prevista entro fine 2020. Fantastici invece i MFG CROSSWIND peccato che siano abbastanza costosi..
  16. You could use a script to simulate that if an HARM missile hits the ship, a WEAPONS HOLD trigger will be set for the ship
  17. Now that my little girl has let me use my pc, try this it should work without moose Handler = {} function Handler:onEvent(event) if event.id == world.event.S_EVENT_DEAD and event.initiator:getName() == 72455195 then trigger.action.setUserFlag('1', true) end end world.addEventHandler(Handler)
  18. my mistake, when i tried the script i had loaded moose and i didn't realize that without moose it doesn't work ...
  19. Io ho il GUNFIGHTER MK.II MCG PRO EN, che IMHO credo sia il migliore stick+base in commercio, il software in dotazione è complesso e ti permette di programmare ogni tasto e hat.
  20. Ho formattato da poco e non ho fatto niente, basta l'attivazione online
  21. Unit names hpriority and priority work only with CTLD script. I advise you to use CTLD or Moose there is no other solution.
  22. For me the ground radar is nothing more then a new toy in the Hornet sandbox.. :joystick:
  23. The real question is how the ground radar will be simulated, because even if in reality is not used much, maybe in the game we will be able to use it more efficiently, when all the functions will be available, specially EXT3.
  24. Following Hardcard directions is easy to get it: local Predator = UNIT:FindByName("drone") local TestScheduler = SCHEDULER:New( nil, function() local Coordinate = UNIT:FindByName("enemy"):GetVec2() local DCSTask = Predator:TaskOrbitCircleAtVec2(Coordinate, 2500, 40) Predator:PushTask(DCSTask, 1) end, {}, 1, 5 )
×
×
  • Create New...