snowsniper Posted March 5, 2017 Share Posted March 5, 2017 player:getCoalitionName() Description : retrieves the name of the coalition from a player's unit. Parameters : None Return values: Without error : string Coalition player’s name : "RED", "BLUE" ou "NEUTRAL" see manual in English or French for further explanation here https://forums.eagle.ru/showpost.php?p=3001613&postcount=2 ( English ) or here https://forums.eagle.ru/showpost.php?p=3001633&postcount=1 ( french ) cheers i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals Link to comment Share on other sites More sharing options...
ked Posted March 5, 2017 Share Posted March 5, 2017 yep got it :) Do you know if i can retrieve player's aricraft name ? And i have a another question aswell, i'd like to do a polygonal zone i know it's possible with ATME but i don't know how thank you ! Link to comment Share on other sites More sharing options...
sunski34 Posted March 5, 2017 Author Share Posted March 5, 2017 (edited) Hi, yes of course, object:getName() does that. But the best way, is to look french documentation here :https://forums.eagle.ru/showpost.php?p=3001633&postcount=1 This works for groups and static objects too. You can find object form its name with ATME.C_Group.getByName(name) for groups, ATME.C_AIUnit.getByName(name) for AI units and ATME.C_Player.getByName(name) for players. You have lot of functions like positions, altitude, relative positions (isNear, crossAxisFromLeftToRight etc..), fire flares & smokes, load/unload troops in personnel carrier , attributes (isSam, isAirplane) for AI units or groups, etc.... For polygon, not yet, but i'm working on it. So I hope soon. Sunski Edited March 5, 2017 by sunski34 Link to comment Share on other sites More sharing options...
snowsniper Posted March 5, 2017 Share Posted March 5, 2017 be aware, a Group ( airplane Group) unfact there is only One aircraft inside is not the same than the AIunit inside. a Group can have one or more Unit. local playerUnit = player:getDCSUnit() local nameUnit = playerUnit:getName() local Callsign = playerUnit:getCallsign() local Group = playerUnit:getGroup() local Groupname = Group:getName() player:display("Player Unit Name is "..nameUnit ,25) player:display("Player Callsign Name is "..Callsign ,25) player:display("PlayerAircraft groupeName is "..Groupname ,25) i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals Link to comment Share on other sites More sharing options...
ked Posted March 5, 2017 Share Posted March 5, 2017 Thanks guys, hopefully i've got what i need ! thanks a lot Link to comment Share on other sites More sharing options...
ked Posted March 5, 2017 Share Posted March 5, 2017 Is there anyway to set AWACS and Refueling aircrafts to unlimited fuel without setting it for everyone else ? Link to comment Share on other sites More sharing options...
sunski34 Posted March 5, 2017 Author Share Posted March 5, 2017 (edited) ATME don't do and will not do that. As I said, I think the best way is to read ATME documentation, you will see ATME abilities. After if you have specific questions tell us. Sunski Edited March 5, 2017 by sunski34 Link to comment Share on other sites More sharing options...
ked Posted March 6, 2017 Share Posted March 6, 2017 Ok i've got a new problem right now everything is working when i spawn in aircrafts on the ground or in the air but from the russian aircraft carrier i've got this I tried recreating a mission with no script (only atme core and then ATME.run("FR")) and only the carrier + a su 33 to spawn in. Same problem so i believe this is not comming from my scripts. Any idea ? Link to comment Share on other sites More sharing options...
sunski34 Posted March 6, 2017 Author Share Posted March 6, 2017 (edited) Hi, I never test that case (just having ATME Core) because you must have your own module script after ATME Core (at least one). So if I find the same problem I will add what is necessary in ATME Core to have no problem. I will tell you if I confirm that issue and will fixed ASAP. If you want to try, download ATME_basicmodel.lua here https://forums.eagle.ru/showpost.php?p=3001608&postcount=1 and had it after ATME Core using clone. See image below and replace ATME_HelloWorld.lua by ATME_basicmodel.lua which does nothing. That should work. here a short video : Hope that help. Sunski Edited March 6, 2017 by sunski34 Link to comment Share on other sites More sharing options...
ked Posted March 6, 2017 Share Posted March 6, 2017 (edited) Exact same thing with empty mission(only the aircraft carrier and the sEDITu33), ATME core could be corrupted ? EDIT: i tried with basic model and a new Core file it's still not working when spawning on the aircraft carrier Edited March 6, 2017 by ked Link to comment Share on other sites More sharing options...
sunski34 Posted March 6, 2017 Author Share Posted March 6, 2017 Hi ked, Ok I'am agree, thee's a issue when player airplane starts on Aircrafts carrier. I will see that and fixed it ASAP. Thank you for your return. Sunski Link to comment Share on other sites More sharing options...
ked Posted March 6, 2017 Share Posted March 6, 2017 thanks :) Link to comment Share on other sites More sharing options...
sunski34 Posted March 6, 2017 Author Share Posted March 6, 2017 Hi ked, new release V1.0.11 : fixed the bug. link here : https://forums.eagle.ru/showpost.php?p=3001608&postcount=1 Thank you for your return Sunski. Link to comment Share on other sites More sharing options...
ked Posted March 6, 2017 Share Posted March 6, 2017 Thank you apreciate that, works perfectly ! Link to comment Share on other sites More sharing options...
snowsniper Posted September 15, 2018 Share Posted September 15, 2018 easily usable script module to your mission Case III Operations or Night Landing an easy usable script you can use for all your Hornet F18 or AV8 DCS mission. Case III Operations or Night Landing it gives you Boat and ATIS information ( runway HDG, speed, wind ... ) for landing on boat the script is all commented both french and English 2 missions one running ATME in English language the second in French language. works fine with ATME v145.boatATISandRWYinformationATMEscriptandmissions.zip i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals Link to comment Share on other sites More sharing options...
snowsniper Posted September 17, 2018 Share Posted September 17, 2018 (edited) script and demo mission updated with magnetic heading correction for CRS regarding the Map you're playing.boatRwyHDG_demoscriptATME_v4.zip Edited September 17, 2018 by snowsniper i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals Link to comment Share on other sites More sharing options...
EAF51_Luft Posted May 10, 2020 Share Posted May 10, 2020 (edited) Hi all, I use your ATME_Race, it works very well. but i'm a newbie about .Lua. Can I check if the pylon passage is correct and display the "pylon OK" message? Thx EDIT: PROBLEMS SOLVED. I've added intermediated time for every pylon. if you don't see time, the pylon is wrong. Your scripts is amazing, thx of lot!!! Edited May 10, 2020 by EAF51_Luft [sIGPIC][/sIGPIC] http://wp.europeanaf.net/ EAF51 CHANNEL YOU TUBE https://www.youtube.com/channel/UCIgUfhgS1ZyryNwgR49wOOg Link to comment Share on other sites More sharing options...
sunski34 Posted May 11, 2020 Author Share Posted May 11, 2020 Hi, Thanks for you congratulation !! ;) Pretty cool that exactly what I want to respond. You have lap time. I work on a new version more precise. If you want more informations write me in MP. Sunski Link to comment Share on other sites More sharing options...
Recommended Posts