Midnight Posted May 18, 2013 Posted May 18, 2013 (edited) I've been setting my scenario up for A-10 CSAR and the A-10 in the sim can't ADF like the Huey and KA-50, so no. My ultimate plan is to have the unit transmit calls on guard but will simulate the position coming from a CSEL transmitter (so comm sat GPS coordinates related from AWACS) vs. ADF. Wish it could work though for the A-10...would be cool. Hey man...thanks for your work on this. Been following this post with interest. I made a small mission using some of your code and came quite close to what I want to achieve. SITREP: Pilot flying in multiplayer got shot down and ejected. Huey pilot see the message with co-ords and sets his FM for homing on downed pilot freq. He then flies to pilot and pick him up. Notes: This I think can be set for all players(aircraft units) in a multiplayer mission. First put a enemy unit in mission to shoot down KA50(forgot that ) Spawn in KA and get shot down-Eject. Then spawn in Huey and home on pilot. Issues: *You will see I created a new "soldier" with tasking that can transmit a signal, I want this coding to be on your unit that spawns randomly. HOW? *What will this LUA file look like? (can I just copy and paste from .miz file and create new LUA?) not sure I'm making myself clear here. Thanks again for your work on this.Pilot pickup test1.miz Edited May 18, 2013 by Midnight Mission file
gregzagk Posted May 18, 2013 Posted May 18, 2013 You will see I created a new "soldier" with tasking that can transmit a signal, I want this coding to be on your unit that spawns randomly. HOW? I try this also and it seems that the spawned unit can't transmit in FM so that the Huey can spot it. Anyone knows how to solve this? :helpsmilie: "ARGO" DCS UH-1H DLC SP Campaign 373vFS DCS World squadron (Greece) - www.buddyspike.net "ARGO 2.0 Project Phoenix" UH-1H DLC Campaign - WIP
Midnight Posted May 18, 2013 Posted May 18, 2013 I try this also and it seems that the spawned unit can't transmit in FM so that the Huey can spot it. Anyone knows how to solve this? :helpsmilie: Check PM
Midnight Posted May 21, 2013 Posted May 21, 2013 Pilot Down Had another go at it. This time I got some errors in script. My intention was as follows: I created a mission with only one troop in it, gave him commands to send FM signal and such. I then extracted the LUA and copied the the soldier propperties to the soldier of the previous mission. I then subsequently got some errors with the code, strange since the code worked in original. All this tells me is that I will have to get the coding done correctly. Amy one here that know some coding would be a great help.Pilot pickup test final.miz
ENO Posted May 25, 2013 Author Posted May 25, 2013 (edited) I wish we could get this squared away a bit more... my one mission is still stalled until we can get it sorted. Joyride, I'm trying to use this script you have created to do your sar test mission... I'm trying to strip out your use of the rescue helicopter but I simply don't know the code well enough to know where the chopper code ends and the pertinent stuff about the soldier begins. Any help will be appreciated. Edited May 25, 2013 by ENO "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Midnight Posted May 26, 2013 Posted May 26, 2013 :worthy: WOLLE sorted this problem...thank goodness! http://forums.eagle.ru/showthread.php?p=1770665#post1770665 1
ENO Posted May 26, 2013 Author Posted May 26, 2013 This really does open up some possibilities- but I still have a struggle ahead of me in terms of interpretting what each section of that script does. I don't mind doing my own homework either- but later (I'm just coming off night shift) if I post sections of code I'd really, REALLY appreciate it if someone might be able to help me through it so I know what I'm putting in and how to use it. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
dwpenney Posted May 27, 2013 Posted May 27, 2013 So is the key part this? trigger.action.radioTransmission('VHF_WarningTone.wav', PilotPosition, 0, true, 250000, 1000); Is that the key to adding a radio transmission? According to the scripting engine wiki: function trigger.action.radioTransmission(string fileName, Vec3 point, enum radio.modulation modulation, boolean loop, number frequency, number power) transmits audio file to broadcast. fileName name of audio file. The file must be packed into the mission archive (miz). point position of the transmitter modulation modulation of the transmission loop indicates if the transmission is looped or not frequency transmitter frequency in Hz power transmitter power in Watts So I am not sure how long the transmission lasts and has to be repeated. POssibly as long as the .wav file is active/playing? Fridge ---------- Things which do you no good in aviation: 1) Altitude above you; 2) Runway behind you; 3) Fuel in the truck; 4) The airspeed you don't have.
Midnight Posted May 28, 2013 Posted May 28, 2013 loop indicates if the transmission is looped or not (how long it plays)
Midnight Posted May 31, 2013 Posted May 31, 2013 I have completed my mission where a downed pilot has to be picked up, now I want to clean up the script so it can be used in multiple missions by just loading the script file. Anyone that can help me with this? PM me please Thanks MID
dwpenney Posted May 31, 2013 Posted May 31, 2013 I am part way into something similar. I have a script that detects any eject event and spawns a pilot for that event, provides lat/lon for the downed pilot in a text radio message and (I think) a transponder freq for someone to home in on. At a set distance from the SAR unit, the downed unit will pop a flare and at a closer distance, pop smoke. My next steps are to get the pilot on board and possible spawn a recovery team to go get him/her. It's coming together but there are few issues to clean up and a lot of features to finish. Fridge ---------- Things which do you no good in aviation: 1) Altitude above you; 2) Runway behind you; 3) Fuel in the truck; 4) The airspeed you don't have.
Recommended Posts