Jump to content

Snake323CO

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Snake323CO

  1. Got it pal. THANKS so much for ALL the help!!!!!!!!!!!!!!!!! YOU DA MAN!!!! Off topic, but is there a way to get the HUD only view, with ONLY the HUD?? Without the map and VSD?
  2. Hey Grimes: Sorry for the misunderstanding. Being an 'old' VB coder, I'm used to getting code snippets that are generic in nature, and then having to tweak them for my specific situation. I'm not used to getting code that's ready to go out the gate. VERY NICE!!!! I saw groupName, and instictively shoved in the 'group name'. Sorry about that!!! OK....I added the code, as is, per your instructions, but I'm still getting a script error. What appears to be happening is, MIST isn't loading. Here's the scenerio; 1st trigger: TYPE: Mission Start, CONDITIONS: Time More Than 1, ACTIONS: Do Script File - mistv3_7_51.lua 2nd trigger: TYPE: Mission Start, CONDITIONS: Time Less Than 10, ACTIONS: Do Script - function groupIsDead (as is) 3rd trigger: TYPE: Once, CONDITIONS: Unit Dead, ACTIONS: Do Script - if groupIsDead('F-15 Group01') == true then mist.respawnGroup('F-15 Group01', true) end I fly this, crash the aircraft, and get the following script error. [string "C:\users\jd\AppData\Loacal\Temp\DCS\/~mis00001A4A"]:1: attempt to call global 'groupIsDead' (a nil value) stack traceback: [C]:in function 'grouIsDead' [string "C:\users\jd\AppData\Loacal\Temp\DCS\/~mis00001A4A"]:1: in mainchunk So then, for sh*ts and giggles, I removed the 1st trigger, which loads MIST, and flew it again. Low and behold, I get the same error. It's acting like MIST isn't loading, and causing the script error.
  3. Hey Grimes: Sorry for being such a PITA. However I'm still having a respawn issue. I have determined that the original trigger, which had a condition of Group Dead, is not working. The Action would never run. I changed the Condition to Unit Dead, and now the Action is running. Now when I crash my aircraft into the water, I get the beginning of the 'water splash' cut scene, and then the sim freezes. A dialogue window pops up stating: Mission Script Error [string "C:\users\JD\AppData\Local\Temp\DCS\/~mis00004622"]:1:<name> or '...' expected near "F-15 Group01" I get this error when I replace all occurrences of (groupName) with ('F-15 Group01') Any ideas? And again...Thanks for all the help!!!
  4. Hey Grimes....thanks for the help!!!! Here's the deal.....I'm setting up a 'Landing' mission, in multiplayer. The requirement is to have the aircraft configured to land(e.g. gear down, flaps down) at mission start. I thought an easy way of doing it was having the sim do a 'key press' of 'g' and 'f'. Since that's not an option, is there a way I can accomplish this task? Thanks man!!!!!! -Snake
  5. Grimes...thanks for the help. I used that code you gave me as is, and it didn't work. I noticed that the first 'IF' param repeats itself, where as the 2nd param has a # before Group.getByName, so I added it to the first param. I tested it and still no go. I then replaced all the (groupName) with ('F-15 Group01'), and still no go. What am I missing??? I am running this in multiplayer, and there is only 1 aircraft (F-15 Group01). The 1st trigger are loading Mist3.3 at Mission Start, and the 2nd trigger is set up as: TYPE: Once, CONDITIONS:Group Dead (F-15 Group01), ACTIONS: Do Script File
  6. Hi: I was wondering if the multiplayer respawn function stopped working. I had it working about a year or so ago, but as of today, it's no longer working. I have two triggers set up...the first one fires off at mission start to load Mist3.3. The second one fires when a group dies. I have 1 F-15 group called 'F-15 Group01'. When it dies it should fire off the lua script I have for respawning. The contents are below: if not Group.getByName('F-15 Group01') then mist.respawnGroup('F-15 Group01', true) end This used to work....any ides why it doesn't any longer? And yes, I am testing this in multiplayer. Thanks for any help. -Snake
  7. Hi: Hope someone can help me with this. I have requirement that will cause an aircraft to drop it's gear automatically. I've got the trigger set up, so that it calls to a lua file. However, I can not figure out the code that will 'press' the "g" key. Is there a way to make a 'key press' call, and if so, would you give me an example. If there is another was to drop the gear automatically, then please let me know. Thanks for any and all HELP! -Snake
×
×
  • Create New...