Jump to content

Search the Community

Showing results for tags 'scripting engine'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Official Updates
    • Community News
    • Official Newsletters
  • New User Briefing Room
    • Squadron Recruiting
  • English
    • Digital Combat Simulator
    • Licensed Third Party Projects
    • General Off-Topic Discussion
    • Legacy Versions
  • International support
  • Русский
  • DCS Finland's DCS Finland
  • 3Sqn's 3Sqn
  • 49th Black Diamonds's 49th Black Diamonds
  • -=Пилотажники=-'s -=Пилотажники=-
  • Polacy's Polacy
  • = Flammeus Vulpes = fighting squadron's = Flammeus Vulpes = fighting squadron
  • Banda-DV's Banda-DV
  • Comedy Central's Comedy Central
  • =UVAF='s =UVAF=
  • 100 KIAP's 100 KIAP
  • VVS 504th Red Hammers's VVS 504th Red Hammers
  • COPE THUNDER's COPE THUNDER
  • Lock-On Mod Makers's Lock-On Mod Makers
  • Sweden's Sweden
  • Leftside Limited Tech section's Leftside Limited Tech section
  • Ground Troops Aviation Training Center's Ground Troops Aviation Training Center
  • German DCS Community's German DCS Community
  • Spanish DCS Community's Spanish DCS Community
  • DENMARK's DENMARK
  • °United Fight Spirits° - Germany's °United Fight Spirits° - Germany
  • DCS UK's DCS UK
  • Чат's Чат
  • RedRodgers's RedRodgers
  • Совместные вылеты онлайн's Совместные вылеты онлайн
  • -=Air piretS=-'s -=Air piretS=-
  • Клуб Веселых Пилотов/Smile Pilots Club's Клуб Веселых Пилотов/Smile Pilots Club
  • 161 Squadron's 161 Squadron
  • German DCS Serveradmins's German DCS Serveradmins
  • Escuadrón 701, Colombia's Escuadrón 701, Colombia
  • LowLand Tiger Meet's LowLand Tiger Meet
  • 279KIAP Regiment's 279KIAP Regiment
  • Australian DCS Community's Australian DCS Community
  • Scandinavia's Scandinavia
  • Crazy Canuks's Crazy Canuks
  • VNAO's VNAO
  • SHREK AIR STRIKE Sqn DIE HARD's SHREK AIR STRIKE Sqn DIE HARD
  • DCS NA's DCS NA
  • The Silver Falcons's The Silver Falcons
  • 127Th Sibйrian Tiger's 127Th Sibйrian Tiger
  • 129th A-10 Squad: The Guard Sharks's 129th A-10 Squad: The Guard Sharks
  • Virtual Red Arrows's Virtual Red Arrows
  • Hellenic Pilots's Hellenic Pilots
  • =2IAE='s =2IAE=
  • VETERANS-GAMING's VETERANS-GAMING
  • 16th ACCW Tigers DEN's 16th ACCW Tigers DEN
  • USMC Veterans's USMC Veterans
  • United States Air Force's United States Air Force
  • =BAF='s =BAF=
  • Fighter Combat Simulations's Fighter Combat Simulations
  • =Воздушные Войны= aka =BB='s =Воздушные Войны= aka =BB=
  • CADelta's CADelta
  • DCS: Combined Arms's DCS: Combined Arms
  • VNAO - US NAVY's VNAO - US NAVY
  • Oceanic Wing and Friends's Oceanic Wing and Friends
  • The Virtual Horsemen's The Virtual Horsemen
  • Hellas's Hellas
  • NoPryl Flight Squadron's Topics
  • NoPryl Flight Squadron's NoPryl Warthog Squadron
  • Carrier Air Wing Seventeen — CVW-17 —'s Carrier Air Wing Seventeen — CVW-17 —
  • 蜂鸟特技飞行表演队 HummingBird Aerobatics Team's 蜂鸟特技飞行表演队 HummingBird Aerobatics Team
  • 1st Cav Div (Air Assault)'s 1st Cav Div (Air Assault)
  • CrimsonFlag - 102° GVv's CrimsonFlag - 102° GVv
  • AIEclan's AIEclan
  • Virtual Black Sheep's Virtual Black Sheep
  • 929th's 929th
  • French DCS Community's French DCS Community
  • 373rd Online Tactical Campaigns's 373rd Online Tactical Campaigns
  • Just For Laughs Simulation DCS's Just For Laughs Simulation DCS
  • "Russian Air Force" =RAF='s "Russian Air Force" =RAF=
  • ECV56 Cóndor's ECV56 Cóndor
  • Master Arms's Join Master Arms
  • Master Arms's Master Arms
  • 141 Wolfs's 141 Wolfs
  • 314. ШАП Моздок (Су-25)'s 314. ШАП Моздок (Су-25)
  • Escuadrón 117's Escuadrón 117
  • Austian/Germany Pilots's Austian/Germany Pilots
  • Итория авиации's Итория авиации
  • Clan Vikingos's Clan Vikingos
  • Virtual Royal Danish Airforce's Virtual Royal Danish Airforce
  • United Operations Air Forces's United Operations Air Forces
  • United States Navy's United States Navy
  • SQUADRONE LAMPO TICINO CH's SQUADRONE LAMPO TICINO
  • Europe clan's Europe clan
  • No.66 Squadron's No.66 Squadron
  • De Belgae's De Belgae
  • v47th Fighter Squadron's v47th Fighter Squadron
  • 105 Wirtualny Pułk Śmigłowców Bojowych (105th Virtual Combat Helicopters Regiment).'s 105 Wirtualny Pułk Śmigłowców Bojowych (105th Virtual Combat Helicopters Regiment).
  • 7 Wirtualna Eskadra Działań Specjalnych's 7 Wirtualna Eskadra Działań Specjalnych
  • 223rd CAS "Wolfpack"'s 223rd CAS "Wolfpack"
  • www.TAW.net - DCS Division's www.TAW.net - DCS Division
  • Jagdfliegergeschwader 1 “Fritz Schmenkel” (JG-1)'s Recruitment
  • 64th Aggressor Squadron - Public's Images and Videos
  • =БК= Братские крылья's Связь
  • =БК= Братские крылья's Сервера =BK=
  • =БК= Братские крылья's Вопросы
  • Virtual Carrier Air Wing 99's Topics - Bugs
  • Virtual Carrier Air Wing 99's COOP Flights - Request
  • Virtual Carrier Air Wing 99's Video and Live Feed
  • Virtual Carrier Air Wing 99's Recruitment questions
  • DTA - Comunidad Hispana de DCS's Muro
  • Virtual Skyblazers's Information
  • Virtual Skyblazers's Conversation
  • Sesto Stormo Virtuale's Media Missioni
  • Task Force Trident's Task Force Trident Recruitment
  • The Flying Kiwis's The Flying Kiwis Zorb ball of death dedicated server
  • The Flying Kiwis's ANZAC Mission
  • LINCI's Discussioni
  • [OFS] Open Flight School's Informationen
  • The Pirates Cove's Mods
  • The Pirates Cove's C-130 MOD
  • VF-211's Contact us
  • RUSSIAN FALCONS's Публичная информация
  • DCS PŇACI's BLA BLA
  • Comunidad Española de DCS - Interescuadrones's Discusiones
  • Sabre Squadron's Campaign & Mission Updates
  • Ravenspear Tactical Solutions's Topics
  • 74th Flying Tigers's Questions and Answers
  • 300 Squadron (MiG-29)'s Announcements
  • Virtual JaBoG32's Topics
  • VIRTUAL 312 SQUADRON's THE VIPER DRIVERS
  • Cerberus Fighter Wing's Screenshot Posting
  • Digital Coalition Air Force's Posts/Forum
  • Beyaz Kartallar (161-Kartal Yarasa Filo)'s Beyaz Kartallar
  • Strike Fighter Squadron's VMFA-35 Skin by Stellou
  • 1st VFW's General Discussion
  • Joint Task Force 191's January 1st, 2024 - New Training Program
  • VFA-41 Black Aces's VFA-41 Black Aces Squadron Info
  • 154th Air Wing's New Server
  • JTF-111's What We Offer
  • JTF-111's Latest News
  • Pegasus's Hellenic tutorials
  • vVMFA-251's VMFA-251 is back and recruiting virtual Marine Hornet pilots!
  • 9th Air Brigade of PLAAF's Anyone want to train together for competitions?
  • 71st_Eagles's Topics
  • 71st_Eagles's Members
  • Task Force Uniform Charlie Sierra's Links
  • =LF= Escuadrón LA FUNDACIÓN's AVISOS Y NOTÍCIAS
  • 1(F) Squadron RAF Air UK's Operations
  • PKP's Casual Squadron : EST preferred ; Apache; F16; ; F14; A10C2; Spitfire's Lets Fly
  • Tact. Air Base 8's Dedicated Public Servers
  • 334th "Eagle" Squadron's Contact Us
  • Nemesis HAW's Topics
  • 枝江虚拟航空队's 涂装展览
  • COMMAND OF THE AIR's ЧАТ
  • 1st Virtual Air Expeditionary Wing's Public Affairs
  • 「301fs」's Enlisting
  • 「301fs」's 301fs Equipment
  • 「301fs」's Squadron Rules
  • Royal Netherlands Air Force virtual's Topics
  • vCSG-3's Recruitment
  • 4YA-Community's Events
  • 4YA-Community's The 4YA Community
  • VMFA-323's Welcome
  • 78th Fighter Squadron's Topics
  • Air Group =Axeman= (=AxA=)'s Связь
  • Air Group =Axeman= (=AxA=)'s Air Group =Axeman= (=AxA=)
  • VFA-103 VIRTUAL JOLLY ROGERS's Discord
  • Ghost Syndicate's Forum
  • [TM] Tigermercs's Club-Forum
  • GAEv Grupo Aeronaval Embarcado Virtual's Discusiones
  • 76th DSOW (Digital Special Operations Wing)'s Open Recruitment
  • 619th Windborne Air Group's Current Events
  • VICOMTE's Recrutement
  • Casual Flyers's Casual Flyers
  • The Jousters's Chat
  • Stalin's Falcons's Создание сервера
  • Stalin's Falcons's Предложения полетов
  • Stalin's Falcons's Связь
  • Task Force Trident's Squadron Media
  • Task Force Trident's Task Force Recruiting Information
  • Carrier Air Wing TWO (CVW-2)'s Squadron Media
  • 101st Combat Aviation Brigade's Instructions on How to Join
  • (NAFSAM)'s NAFSAM Discord
  • Wolfa - french squadron's Activité/activity
  • Wolf Pack US's Wolf Pack Videos and Server Info
  • Wolf Pack US's Wolf Pack Warbirds Persistent Sever Tutorial
  • Carrier Air Wing 3 | RU's Discord сервер сообщества
  • Carrier Air Wing 3 | RU's Наша группа в ВК
  • 808th World Squadron's How To Join
  • 虚拟笕桥航空队-JQvFG's 鸽动力水坛(General Topic)
  • 虚拟笕桥航空队-JQvFG's 笕桥陵园(Event Room)
  • 虚拟笕桥航空队-JQvFG's 笕桥航校(JQvAA)
  • 虚拟笕桥航空队-JQvFG's 笕桥影业(JQvFG Film)
  • Australian Virtual Air Wing's Forum
  • Virtual Royal United Kingdom 10th Squadron's LUA Discussions
  • ММВГ "Broiller Squad"'s Форум
  • Task Force Thunderbolt's Topics
  • 588th Fighter Aviation Regiment's Announcements
  • 588th Fighter Aviation Regiment's Media
  • 588th Fighter Aviation Regiment's Chow Hall
  • Joint Flight Command Oregon's Application & Links
  • Irréductibles's Recherche de pilotes motivés F18 et M2000
  • VF-103 Jolly Rogers's Recruitment
  • VF-103 Jolly Rogers's Media
  • Escuadron 69's Foro del E69
  • Carrier Air Wing 7 | RU's VK
  • Virtual Task Force 77's News & Updates
  • 367º МЦО / MTsO's Media Exterior
  • DCS World România's Forum și postări
  • Crossant's Topics
  • Titan Squadron's Titan Squadron
  • VFS-252 Sky Pirates's Topics
  • Iran | 404th Freelancers's Media
  • Iran | 404th Freelancers's Recruitment
  • Virtual Carrier Task Force 58's Squadron Updates
  • Take Flight's Join/Sign Up Information
  • Phobetor Squadron's We are recruiting!
  • 187th Fighter Squadron "Redtails"'s Flight Pics
  • 187th Fighter Squadron "Redtails"'s More pics
  • 187th Fighter Squadron "Redtails"'s One more

Calendars

  • Community Calendar
  • Jagdfliegergeschwader 1 “Fritz Schmenkel” (JG-1)'s Events
  • ASOR 234 squadron's Operations
  • ≡★≡ THE 51st VIRTUAL FIGHTER WING ≡★≡'s Events
  • Lock-On Greece | DCS World Greece™'s Events
  • DCS Español || D3W's Calendario
  • DTA - Comunidad Hispana de DCS's Eventos
  • Carrier Air Wing 66's Events
  • DCS - Allied Forces - Open Missions and Beyond's Events
  • Sesto Stormo Virtuale's Eventi
  • [OCG] Oceanic Combat Group's OCG Events & Training
  • The Flying Kiwis's TFK Flying schedule
  • VF-211's Training nights
  • VF-211's Calendar
  • 421st VIRTUAL FIGHTER SQUADRON's MISSION BOARD
  • DCS PŇACI's LIETANIE
  • Comunidad Española de DCS - Interescuadrones's Eventos
  • Ravenspear Tactical Solutions's Events
  • VFA-86 Sidewinders's Winder schedule
  • 74th Flying Tigers's Trainings and Missions
  • 300 Squadron (MiG-29)'s Events
  • Cerberus Fighter Wing's Events
  • uosef's عقابهای ایران
  • v81st Fighter Squadron's Training and Operations
  • Darkwater Aerial Security Ltd. (Task Force "Caucasus Dragons")'s Contracts and Operations
  • Darkwater Aerial Security Ltd. (Task Force "Caucasus Dragons")'s Events
  • JTF-111's Events
  • Pegasus's Events
  • DCS ANZUS's Community Events
  • Delta Force Squadron's Events
  • 71st_Eagles's Events
  • 71st_Eagles's Events
  • Virtual Fighter Group's Schedule
  • =[RCAF 416 TFS]='s Server Test/08-24
  • PKP's Casual Squadron : EST preferred ; Apache; F16; ; F14; A10C2; Spitfire's Meet and Greet
  • Tact. Air Base 8's Events
  • 71st Laughing Rooks's 71st Events
  • Virtual Air Festivals's VAF Events
  • Royal Netherlands Air Force virtual's Events
  • Royal Netherlands Air Force virtual's Events
  • vCSG-3's vCSG-3 Events
  • 102nd Albatross's Events
  • ESCUADRÓN 111's Events
  • VMFA-323's Events
  • 78th Fighter Squadron's Events
  • vNAVY's Events
  • Ghost Syndicate's Events
  • [TM] Tigermercs's Staffeltraining
  • [TM] Tigermercs's Events
  • 76th DSOW (Digital Special Operations Wing)'s Missions
  • RS Red Star's Events
  • Carrier Air Wing TWO (CVW-2)'s Scheduled Squadron Events
  • Combined Joint Task Force's OPERATION - ISLAND HOP
  • Wolf Pack US's Wolf Pack Missions and Events
  • Wolf Pack US's Events
  • Wolf Pack US's JUGHEADS mission night
  • 808th World Squadron's Birth Date 01.24.23
  • 虚拟笕桥航空队-JQvFG's 联机活动日程
  • Australian Virtual Air Wing's Events
  • Virtual Air Force's Mission/Training Night
  • TACG 218's Events
  • ММВГ "Broiller Squad"'s Операции
  • 366th Fighter Wing "Gunfighters"'s Mssion nigths & Operatinos
  • Task Force Thunderbolt's Events
  • Joint Flight Command Oregon's Events
  • [JaboG49] Virtuelles Jagdbomber Geschwader 49's Termine
  • Virtual Carrier Air Wing One (vCVW-1)'s Sinai Campaign
  • Task Force Perpetual Motion's Events
  • British Virtual Air Force's Events
  • Dark Ravens's Calendario
  • VF-103 Jolly Rogers's VF013 Events
  • 24th Combat Aviation Brigade's Events
  • 367º МЦО / MTsO's Calendar / Calendario
  • VFS-252 Sky Pirates's Events
  • DCS ITALIA's Eventi
  • JATF - Joint Air Task Force's Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Flight Simulators


Location


Interests


Occupation


Website

Found 15 results

  1. DCS Scripting API Prototypes — TGFB Edition info This utility allows for more efficient and cleaner code so, help you make better scripted missions! With this you will gain the ability to lookup and see all functions available to you in the DCS Mission Scripting API. You will get function auto-completion so you will always know what param a function wants/needs. It will also warn you for sketchy nil and Mission Scripting errors so my advice if you see a "warning" in your file you better check that out and fix it to prevent bugs and unintended fun!! The original idea as far as i can see was from 'asherao' Installation and download -> HERE TGFB Info Website: tgfb-dcs.com Discord Feel free to join the TGFB Discord or visit or website to stay up-to-date with my latest projects, mission and tools Enjoy using this tool!! This tool is updated for DCS version : "2.9.19.13478" Credit : - Hoggit Discord - asherao See Screenshot EXAMPLES :
  2. AFAIK, there is no documented way to set aerobatic task for AI in mission script. I'd like to request to provide us this possibility.
  3. Я скачал скрипт, засунул его в Макс 12, делал все по инструкции, указываю путь к папке Shapes а модельки не открывается, приложу видео для просмотра проблемы более понятно, заранее спасибо большое за помощь VID_20250110_190403_802.mp4 I downloaded the script, put it in Max 12, did everything according to the instructions, I specify the path to the Shapes folder, but the models do not open, I will attach a video to view the problem more clearly, thank you very much in advance for
  4. currently the lua api function land.getSurfaceType(table vec2 ) returns form the following enumerator land.SurfaceType LAND 1 SHALLOW_WATER 2 WATER 3 ROAD 4 RUNWAY 5 I would like to propose adding 1 or 2 new values first and most important, FOREST, not talking about like small treelines or anything custom placed, I mean the actual forest areas. These are part of the maps and should be already known by the sim, if we could have access to that it would enable a lot of features for lua scripters second, less important but would still be nice is a URBAN or CITY value, basically anywhere that is inside a town or city, for similar reasons, thugh unlike forest i dont know if this information is as accessible so it is not the primary ask cheers
  5. Hey, seems I am back with another round of issues I would like to report. I have worked on a script to change the warehouse item values so that we can save what was in the warehouse at the mission restart, etc. However, I have come across and issue where some of the items are not being given to the script when using Warehouse.getInventory( ) so we are being left with items in the warehouse, or not being able to change the values that the warehouse has of the items. I set the warehouse values to 100 using the Fill Col in the mission editor. Then I will make sure Dynamic spawns etc is available. Doubt this would matter, but I did it. In my case , I am using "DCS Lua Runner" in Visual Studio Code to run the script this way I can make faster iterations when the script fails. Also, keep in mind, this script will save a few files to your disk, and you will need to set the location you want them to be saved to inside the script. Otherwise, obviously this will fail. First the script will make a small text file so that it knows for later that every other run afterwards is no longer the "First Run" since we do not want to loose the initial set values we started with. Then after each server or mission restart, when run it will then clear the entire warehouse inventory and then set all the values to what is in the CSV file. In this image you can see that certain items are not set to 5000 like the CSV should be. And no, this is not because it is more than the max value, even if I set it to 5 it doesn't make a difference. Anyways, back to the issue... It seems that, when the script asks for the entire inventory of the airbase it is not getting everything that is in the airbase. Some items seem to be omitted, and as far as I can see it is new-er aircraft like the KIOWA, CH-47, and F-5? Of course this is completely breaking any possibility of having a dynamic, warehouse/supply based mission for the time being. I would attach the mission file, however you will need to have your DCS environment sanitized and make some light modifications to the script for it to function. So, instead I will attach a blank mission that's ready to go and you will have to modify and load the script on your own. I attached the CSV's for an example of what the script gets when it is first run. Both on an airfield with items set from the mission editor to 100, and one where it is set to 0 for everything. Hopefully something can be figured out with this, and maybe I am super confusing with what I wrote. I hope not null Warehouse Test Cauc.miz unit and warehouse saving.lua Senaki-Kolkhi_Blue.csv Kutaisi_Blue.csv
  6. In order to quickly find ports on the map, the mission creator shouldn't have to scour the map and write down lat/longs for them. The maps that have ports detailed and modelled should have them marked and selectable and the mission editor should have a layer showing all the 'modelled ports'. The scripting engine should also be able to grab a list of ports and get data about them. i.e. max size of ship, number of berths etc.
  7. I have the following events handled (amongst all the others) S_EVENT_PLAYER_ENTER_UNIT S_EVENT_PLAYER_LEAVE_UNIT When I enter the F14, I see a S_EVENT_BIRTH followed by a S_EVENT_PLAYER_ENTER_UNIT. Then I ask my RIO to join in, I get the on-screen allow someone to join dialog (would be nice if this could have a keybinding as finding the mouse pointer esp in VR is a pita) and then I click allow... After a few seconds I get the blue banner saying my RIO has joined, and he confirms he's in the back. Yet NO events fire. Nothing. But when he jumps out, I get the expected S_EVENT_PLAYER_LEAVE_UNIT to fire. Obviously I can't give you a track or anything because you need two people and a multi-crew aircraft to do this, but it's a simple test. Without the S_EVENT_PLAYER_ENTER_UNIT event firing then it's impossible for my Player Manager to work out that they are a backseater and set things up accordingly.
  8. As the title says. If I output the value for Unit.getByName(unitName):getID() it is surrounded by quotes and it's type is a string But if I do this: Unit.getGroup(Unit.getByName(unitName)):getID() It's type is number. So to make the first statement work I have to cast the return value 'tonumber'.
  9. So I know the documentation, such that it is and unofficial etc, but here: https://wiki.hoggitworld.com/view/DCS_singleton_net It says that there are many functions, including 'log', in that singleton. However, when looking into it via Visual Studio Code (https://github.com/asherao/DCS-Scripting-Library), log and many of the others, is no longer inside 'net'. e.g. I understand these are a third party creation so they can't be relied to be The Truth. So, I did an investigation. I made a logging script with a logging function: function LogWrite(moduleString, level, message, ...) -- THIS FAILS net.log.write(moduleString, net.log[level:upper()], string.format(message, ...)) -- THIS WORKS log.write(moduleString, log[level:upper()], string.format(message, ...)) end If log is supposed to exist inside the 'net' singleton, then the first line should work, however it only works as it's own 'singleton' or a global function. Can we get some clarification on this please? @Grimes Do you have any thoughts or knowledge about why log breaks with net.log?
  10. At the moment the only commonality between the data extracted using the net singleton and the DCS Scripting Engine is the PLAYER NAME. This means, that unless the user / mission creator is keeping track of all player names, then it's impossible to link the data from the net singleton back into the DCS Scripting Engine. e.g. There is no way to link PLAYER NAME and SLOT data back to the UNITID in the DCS Scripting Engine.
  11. env.mission has the following: -- date : table : The date the mission takes place at with Year, Month, and Day entries -- descriptionText : string : Mission briefing defined under the "Situation" page on the briefing panel -- descriptionBlueTask : string : Blue coalition task defined on the briefing panel -- descriptionNeutralsTask: string : Neutral coalition task defined on the briefing panel -- descriptionRedTask : string : Red coalition task defined on the briefing panel -- drawings : table : Table containing information on any drawing placed in the editor. -- pictureFileNameN : table : Neutral coalition briefing images -- pictureFileNameB : table : Blue coalition briefing images -- pictureFileNameR : table : Red coalition briefing images -- result : table : Conditions and actions defined by mission goals in the editor to decide if a mission is "won" -- start_time : number : Time in seconds since midnight for the date set when the mission starts -- sortie : string : Name of the mission as defined in the briefing panel. -- theatre : string : Name of the map the mission takes place on Almost everything in this list is able to be accessed through lua/scripting Engine, but for these three: pictureFileNameN pictureFileNameB pictureFileNameR Instead of getting the actual picture image (found in l10n/DEFAULT/<imageName>.<extension>), what is returned is an obfuscated 'ResKey' for it. Because there is no way to use the 'ResKey' in it's place, it means that for these three items only, they are hidden from the scripting environment (and I can't see a good reason why). There is no equivalent 'getValueByKey' for objects in the mapResource file. Could these be 'un-obfuscated' or could an additional command be added to retrieve the actual file url from the 'ResKey' Thanks
  12. I ask because whilst I'm building my own zone manager, I'd like to be able to send to the Mission Editor the same events - i.e. moving in zone or group in zone etc, so that mission designers can use my zone manager but not have to use any lua, and access it from the ME trigger conditions.
  13. There is no option to STOP the currently transmitting message via a STOP CONDITION for the PERFORM COMMAND -> TRANSMIT MESSAGE function inside the Mission Editor or Scripting. If you had both a START and a STOP condition, then interactive and dynamic communications could happen between players and AI aircraft, by having multiple TRANSMIT MESSAGES stacked up, each with their own START and STOP conditions.
  14. Had an issue pop up while working on some VBIED stuff. The general gist is that I'm using the "Perform Command > Run Script" at a vehicle's final waypoint to have it explode. The code I'm using to grab the vehicle's position and destroy it is: local thisGroup = ... local firstUnit = thisGroup:getUnit(1) local firstUnitCoords = firstUnit:getPoint() trigger.action.explosion(firstUnitCoords, 200) This works fine if there's more than 1 vehicle in the group, but if the vehicle is alone in the group, then DCS crashes as the explosion triggers (you can see the initial effect of the explosion in the right spot as the crash happens, so the explosion part of it is still "working"). No scripting errors pop up and dcs.log doesn't show anything out of the ordinary for me. Am I misunderstanding something about getUnit or using it incorrectly, or is there some kind of quirk with how it works when there's a single unit in a group? I also tried making a function that checks that the group size is >= 1 before grabbing the unit and exploding it, and then calling that from the vehicle waypoint, but it still results in the same crash. Test mission is attached with 2x Urals that will drive forward a little bit and the lead unit explodes, as intended. If you reduce the group size to 1, it will crash the game instead. VBIED Test.miz
  15. With the function 'searchObjects' we can search for objects in a volume. Some of the types are sphere and box. When using a BOX type to search for objects in a area, lets use the MGRS Grid for this, there is only two points available to define to box. This means that we cannot rotate the box in any way to line up with the MGRS grid, this causes the search volume to out of the "bounds" that we intend to have. I created a simple mission showing what happens, and the drawings on the map show what "should" be happening. The Black dotted line is where the SearchVolume see's, and the White to Blue boxes are just showing if the unit is detected. All he does is drives back and forth through the MGRS Grids so you can see what the Volume is doing. It would probably be best to have the ability to give four points on the box rather than two, or maybe I am missing something? I've attached a track file, the mission, and the scripts I made for this. 2 CaucasusAirbases.lua 1 Caucasus ScanZone.lua 3 Caucasus ZoneMarks.lua Cauc-Zone-Detection-Test.miz SearchVolumeTestCauc.trk
×
×
  • Create New...