Jump to content

Kleinbart

Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. That's it, thanks for your help Gimres. To a happy new yearl
  2. Hello all When I run the following function, DCS crashes. function gotoWP() local goToWaypoint= { id = 'goToWaypoint', params = { fromWaypointIndex = 1, goToWaypointIndex = 10, } } Group.getByName('Air-1'):getController():pushTask(goToWaypoint) end With this alternative function nothing happens at all. function gotoWP() local SwitchWaypoint = { id = 'SwitchWaypoint', params = { fromWaypointIndex = 1, goToWaypointIndex = 10, } } Group.getByName('Air-1'):getController():setCommand(SwitchWaypoint) end Am I missing something or is this a bug? Thanks for your help
  3. Hello together I am looking for a way to refuel a player plane during a running mission by lua script. Refueling on a tanker overwhelms many players (me too), nevertheless it is a great game element that enriches a mission. My idea is to make a moving trigger zone around the tanker. If the player is in the zone for 30s, the tank is filled. Is it possible to fill the tank by LUA, I haven't found a solution so far. Thanks for your answer.
  4. Hello all Is it possible to make a runway indestructible or repair it in the mission editor? In my mission there are some targets near a runway. If the pilot misses the target and hits the runway, no AI-plane will take off anymore. This is realistic but interferes with the mission flow. Thanks for your help
  5. yeah, tested and it works ... Thanks a lot Kanelbolle
  6. Hello all I can use the function "outTextForUnit" in MP to send the pilot/unit specific messages. The message should be sent after the pilot requests it in the radio menu. I am looking for a way or a function which gives me the name of the requesting pilot/unit. Does anyone know a solution? Thanks for your help.
  7. That's the solution. thank you
  8. Hello together When I use the IR Maverick in PRE mode with the TGP, there is an offset between the TGP and the Maverick. When I select the Maverick on the other wing, the offset also changes. But the Maverick and TGP never match. I only have this effect when I take off from the ground with the F16. If I put an F16 in the air in the editor, I don't have this offset. What am I doing wrong? Thank you for your answer.
  9. Hello together Is there a possibility to parameterize the AWACS in the editor in a way, that only enemy aircraft are warned? In my mission there are also some enemy helicopters, but they are not a direct threat. Nevertheless, the AWACS is continuously warning. Thanks for your answer
  10. Wow, good to know. You saved my mission, which I spent a lot of time on. Thanks a lot for that.
  11. Hello all The following problem: I have built a mission in which you have to find a crashed plane. The crash site is marked with smoke. I have tested the two variants: - trigger.action.smoke(...) - trigger.action.effectSmokeBig(...) In the MP game I can see the smoke with both variants, but the other players don't see anything. Is this a known MP problem? Is there a workaround for this? Thanks for your help.
  12. Hello together I am looking for a way to turn on and off the position and formation lights on an AI aircraft with LUA. Is this possible? And if so, how, I have not found anything. Thanks for your answer.
  13. So i will use MIST. Thanks a lot for helping.
  14. I tested with global function. It still doesen't work.
  15. here the exact script: works: local event_handler = {} function event_handler:onEvent(event) if event.id == world.event.S_EVENT_CRASH then -- or any other event trigger.action.outText('Hello World' ,10 ,1) end end world.addEventHandler(event_handler) dosen't work: function helloWorld() trigger.action.outText('Hello World' ,10 ,1) end local event_handler = {} function event_handler:onEvent(event) if event.id == world.event.S_EVENT_CRASH then -- or any other event helloWorld() end end world.addEventHandler(event_handler)
×
×
  • Create New...