-
Posts
17 -
Joined
-
Last visited
About Tobias00723
- Birthday March 5
Personal Information
-
Flight Simulators
DCS
-
Location
Belgium
-
Interests
DCS Mission Scripting
-
Occupation
TGFB | DCS ME Scripting | IT | [C/++|LUA] Dev
-
Website
https://tgfb-dcs.com/
Recent Profile Visitors
458 profile views
-
Functions of the Unit.get * class return nil
Tobias00723 replied to Qazplm's topic in Scripting Tips, Tricks & Issues
Unless you want to spend ~3 months of your life making your own system there are function in mist that your can use : https://wiki.hoggitworld.com/view/MIST_cloneGroup is one of them if you explicitly want a different group name you can ticker with mist but dont really see the use of it here because Group:getName() Unit:getName() are valid functions you can use.... -
Functions of the Unit.get * class return nil
Tobias00723 replied to Qazplm's topic in Scripting Tips, Tricks & Issues
i would recommend taking a look here -> Unit.getByName() can return nil if the name provided does not exist so a unit named 'Tank' does not exist in the mission -
Tobias00723 started following Info and LUA script - Checking if an AI airplane group is dead
-
LUA script - Checking if an AI airplane group is dead
Tobias00723 replied to d0ppler's topic in Mission Editor
Hi cfrag! Thanks for the VERRRY details detailed under the hood explaining! Interesting reading it ngl (Although think a bit overkill here xD) Recently (from what ive checked and remember) DCS added the "Unit:isAlive()" function that you can also use (Sadly not on a Group object) not sure this will result in the same logic but may be 'better' than the weird hacky way of using 'getsize()' Bonus time! I have the following function never really use it that ~should give the right output wanted here because i havent seen any documentation on 'unit:isAlive()' i put the 'should' here So @d0ppler have fun with this freebie ---if group is fully/partially alive or not ---@param group Group|nil ---@return boolean Utils.Unit.Is_Group_alive = function ( group ) if Utils.Unit.Safe_check(group) and group and group:getSize() > 0 then for _, unit in pairs(group:getUnits()) do if unit and Utils.Unit.Safe_check(unit) and unit:isAlive() then return true end end end return false end -
removing deployed CTLD troops via a trigger
Tobias00723 replied to toro 6's topic in Scripting Tips, Tricks & Issues
I think you would need todo this in the LUA scripting i wont provide anything regarding scripting or code but you prob need to work with tracking spawned units (likely with a 'CTLD' Prefix) and the with your tracking system be able to delete that with a 'trigger' ex a menu item marker, timer, etz hope this gets you on the right track -
Welcome to the DCS LUA fun! Lua itself if fairly easy to pickup and you will get that in no time (especially with your experience) the other hand learning the limits, functions and possibilities in the DCS Scripting engine is HARD I would start here -> Also heard something about a "TGFB" that they did something cant remember what Hope this is already a start.... also 'hoggitworld' is a ~good source
-
LUA script - Checking if an AI airplane group is dead
Tobias00723 replied to d0ppler's topic in Mission Editor
Here is a snipped of my personal API due to the small nature of this here you go : this is the safest way to know a unit / group is safe to index and manipulate both code snippest above can still nil out but unlikely, with specifically "Attempt to perform arithmetic on '?' nil value" or something along the lines this can ac cure with empty tables and because a empty table is not nil the 'getSize()' will result in nil If a group/unit passes the "FULL" check the unit is Fully alive and active in the mission and is 'safe' to index the "limited" check gives 90% is good but also works on late activated units or units that may not exits YET (only difference is 'Object:isExist()') use as you wish you might need to edit the names/table structure because you guys dont have my "Utils.Unit" table ---@param Object? Object|Group|any ---@param Level? Safe_level ---@return boolean Utils.Unit.Safe_check = function ( Object, Level ) --[[ if Object and Object.id_ and Object:isExist() then return true end return false ]] local Level = Level or Utils.enum.Safe_Type.Full if Level == Utils.enum.Safe_Type.Full then if Object and type(Object) == "table" and Object.id_ and getmetatable(Object) and Object:isExist() then return true end elseif Level == Utils.enum.Safe_Type.Limited then if Object and type(Object) == "table" and Object.id_ and getmetatable(Object) then return true end end return false end -
FlintMcgee started following Tobias00723
-
Tobias00723 started following How to Dynamically create a new FARP with Dynamic Spawn Slots
-
Tobias00723 started following HIP Games
-
Tobias00723 started following BIGNEWY
-
Tobias00723 started following FlintMcgee
-
LtDevRupesh started following Tobias00723
-
Tobias00723 started following LtDevRupesh
-
untilTGFB Battle Royale After months of planning and developing, its time to mark your calendars! 6 & 8 October 2025 | 10 PM CEST on 28 September the server will go open for training and fun! ! To win prices you must compete on one of the two days and signed-up on our page! Info This is a Free for All (FFA) type of event/mission Where you can kill and destroy anything you see and earn points! Whiles being chased by a moving dead zone! Be the last one standing to win!! Upon start of a ‘Game’ you will start in the Su-25 A/T. After earning points you can upgrade to new modules & Weapons! This Event/Mission is fully economy driven, From airbase economy and supply limitations! Each weapon you carry also costs you ‘Points’ so be careful! More info on our page Prices & thanks Super thanks to ED, Baltic Dragon, Heat blur, Nimbus Pulse, HIP Games, Boarder Airlines for making this event possible! Eagle Dynamics : 2x Modules developed by ED Baltic Dragon : 3x Any Campaign from Baltic Dragons HeatBlur : 4x Modules developed by HeatBlur **[NOT FINAL]** Requirements DCS : Persian gulf (Trails are allowed) Su-25A/T installed & Any module you may wish to fly + Bindings ready Registered on our page (Only if you wish to compete on the two dates) tldr; win prices Joined the TGFB Discord Want to join? and win!? sign-up on our page and you are set! https://tgfb-dcs.com/dcs-battle-royal-event/ I Hope you guys will love it as much as i do! - Tobias
-
Kill Event does not consistently activate
Tobias00723 replied to -Solly-'s topic in Scripting Tips, Tricks & Issues
Prob not, this is a nil error in one of the scripts you use.... "DynamicBVR.lua" -
In stock ME the answer is : probably not If you know LUA then YES; still fairly complicated depending how exactly you want to do this. (I will not) But I can very likely make it. (see my website for more info) You can check my GitHub there are some tools that might help you out or : hope this might be a start
-
Heyo, please download the attached .miz file with the fix You used the "condition" field witch is a LUA statement and the number "30" is not valid LUA lol nothing todo with the previously attached "GPS_GNSS.lua" enjoy Syria Operation Lizard Phase #1 .miz
-
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 :
-
- scripting
- missionscripting
- (and 12 more)
-
Ive taken a look at your miz and scripts and believe this is not a DCS issue A lot of your table structures are incorrect and some 'id' values you put in simply do not exist in DCS hense the "Unknown task" Errors and when the 'id' is valid you give it incorrect DATA than it wont accept so wont execute (BTW) in the scripting API attempting to making a plane land at the coords of a carrier i dont think it will do much because that would be a impossible task for the plane i dont know atm of a better solution for this.... Anyway DCS is requires specific table structures to make task works and even if it gets it it still does it own will TLDR; dont take this negatively but read the hoggit task wiki bit more : https://wiki.hoggitworld.com/view/Category:Tasks and follow the exact table structures and try doing one task at the time and maybe use "push task" not "set task" I have automated a lot of the task generation although working with AI is very difficult and annoying in the Scripting API All my systems still seem to work (Sorry cant share any) so with what ive seen very sure its not DCS today Hope this helps
-
Hope this will be fixed soon!, Really eager to use this on my missions, have already made my systems I have been playing around with this in MP (non dedicated) and seems that some field do not work yet, hope we can get these options too to make this fully integrated in the Scripting API! values extracted from warehouse file in any .miz (These seem to not work yet using coalition.addStaticObject) "unlimitedMunitions" "unlimitedAircrafts" "unlimitedFuel" The following do seem to work already for those that dont know yet : "allowHotStart" "dynamicSpawn" "dynamicCargo" So as of now you will need to manually put in all aircraft, weapons and fuel to make it so you can use the spawned helipad (As far as i know) Hope the team can do this!! @BIGNEWY
-
Variable Behavior of coalition.addStaticObject()
Tobias00723 replied to Grooveline's topic in Object Bugs
Sorry have been doing some tests and still puts a smoke at 0 ASL I tested it with heliports where if i put in "Heliport" -> 0ASL "Heliports" -> 0AGL so still pretty sure this bug is something todo with the "category" field -
Variable Behavior of coalition.addStaticObject()
Tobias00723 replied to Grooveline's topic in Object Bugs
Heyo did some checking myself and seems to be related to the "category" field if this is incorrect or nil it will put it at 0 ASL your "Effects" is invalid -> "Effect" Still presume this is a bug and should not behave like this..... For extra joy you can use the attached file listing all Unit typenames and as the "key" there respective "category" for double checking Typenames from DCS : "2.9.19.13478" Hope this helps TGFB_Unit_typenames_by_category.lua