

Kleinbart
Members-
Posts
29 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Kleinbart
-
I have managed it. Many thanks for your help and for the test mission.
-
Hello everyone I can't see the wood for the trees right now. I want to place an AI airplane on an airfield so that it is visible from the start, but only becomes active when a certain condition is met and flies to a waypoint. With “late activation” this works in principle - but then the aircraft is only spawned when it is activated and is not visible beforehand. For ships there is the option “visible before activation” - this is exactly what I am looking for, but for an airplane on an airfield. Is there a workaround or trick for this? Thanks for your help! Stephan
-
It was the wrist watch switch. Many thanks for your help. You saved my evening
-
Hello everyone When I want to place an airplane in a mission with the editor, I am suddenly missing half of all airplanes. Both airplanes which I have bought, as well as airplanes which I can only use as AI. Does anyone know what could be causing this? The problem is brand new, until yesterday I could place all airplanes. Thanks for your help
-
That's it, thanks for your help Gimres. To a happy new yearl
-
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
-
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.
-
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
-
Individual answer to requests it in the radio menu
Kleinbart replied to Kleinbart's topic in Mission Editor
yeah, tested and it works ... Thanks a lot Kanelbolle -
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.
-
That's the solution. thank you
-
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.
-
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
-
Wow, good to know. You saved my mission, which I spent a lot of time on. Thanks a lot for that.
-
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.
-
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.
-
So i will use MIST. Thanks a lot for helping.
-
I tested with global function. It still doesen't work.
-
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)
-
i forgott the () only here. In the real script i have the (). But it doesent work.
-
Hi guys This is working: 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) And this doesn't work: function doNothing() 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 doNothing end end world.addEventHandler(event_handler) Anyone knows why? Thanks for your answer.
-
Thanks a lot toutenglisse
-
Hello Guys How can I get the middel point of a triggerzone in lua? Somthinge like this: point = Unit.getByName('NameTriggerzone'):getPoint() What kind of object is a triggerzone? Thanks for Help.
-
Thanks for your answer. With variant 1 it works for me.
-
Here is the corresponding LAU code if anyone can use it. Variant 1: if Unit.getByName('UnitName') then trigger.action.ctfColorTag('UnitName', Color) --Disable:0, Green:1, Red:2, Whit:3, Orange:4, Blue:5 Variant 2: local gp = Group.getByName('GroupName') if gp:getSize() > 0 then local SMOKE_ON_OFF= { id = 'SMOKE_ON_OFF', params = { value = false } } gp:getController():setCommand(SMOKE_ON_OFF) end In my opinion, variant 2 looks better. However, this requires that smokewinder are mounted on the aircraft.