BattleRabbit Posted January 24, 2017 Share Posted January 24, 2017 (edited) For the upcoming Viggen release I have thrown myself back into the ME and MIST trying to make a training mission with ships that respawn and follow the original route after being destroyed. The only way I've been able to do that was with the MIST script mist.goRoute('SHIP_original', mist.getGroupRoute('SHIP_original_route')) the group(single ship) SHIP_original_route has the same route setup as the SHIP_original group and is set to invisible and immortal but naturally it can still be seen by the player. Is there another way this can be done or do I just have to live with this one immortal ship sailing around. Thanks Edited January 24, 2017 by BattleRabbit Member of Combined-Ops-Group Link to comment Share on other sites More sharing options...
feefifofum Posted January 24, 2017 Share Posted January 24, 2017 (edited) Would mist.respawnGroup (ship, true) work? Should grab all the properties of the original including route...just need a way to detect if the ship is dead. If it's a simple map, a switched ALL OF COALITION OUT OF ZONE trigger should do just fine. If it's more complex you can use MiST to create a table of your respawns and check if they're dead hut you're getting above my pay grade at that point. :) Good luck! Edited January 24, 2017 by feefifofum THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
ENO Posted January 24, 2017 Share Posted January 24, 2017 Have you looked into MOOSE At all yet? "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art Link to comment Share on other sites More sharing options...
BattleRabbit Posted January 24, 2017 Author Share Posted January 24, 2017 (edited) Would mist.respawnGroup (ship, true) work? Should grab all the properties of the original including route...just need a way to detect if the ship is dead. If it's a simple map, a switched ALL OF COALITION OUT OF ZONE trigger should do just fine. If it's more complex you can use MiST to create a table of your respawns and check if they're dead hut you're getting above my pay grade at that point. :) Good luck! I want them to respawn randomly inside a zone using mist.respawnInZone but they just sit there and only move once I use mist.goRoute('xx', mist.getGroupRoute(xx')) Does mist.respawnGroup work differently than mist.respawnInZone? Have you looked into MOOSE At all yet? Not yet, I though it would be possible only using MIST. EDIT I just checked the docu and saw that there is a task value available for mist.respawnGroup, I don't know how I could have missed that. Edited January 24, 2017 by BattleRabbit Member of Combined-Ops-Group Link to comment Share on other sites More sharing options...
feefifofum Posted January 25, 2017 Share Posted January 25, 2017 Yeah, respawnGroup will create an exact copy with their original route if you include 'true', but if you're looking for something more than a target range it won't meet your needs. There is a function called mist.grouptorandomzone or something like that that might do what you want though and give you a little more variety coupled with your random respawn location THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
BattleRabbit Posted January 25, 2017 Author Share Posted January 25, 2017 Yeah, respawnGroup will create an exact copy with their original route if you include 'true', but if you're looking for something more than a target range it won't meet your needs. There is a function called mist.grouptorandomzone or something like that that might do what you want though and give you a little more variety coupled with your random respawn location Thanks, I'll give it a try. :thumbup: Member of Combined-Ops-Group Link to comment Share on other sites More sharing options...
Pikey Posted January 25, 2017 Share Posted January 25, 2017 I just used the mist.grouptorandomzone myself and had three target zones. It works very well for randomisation. I also spawn them in a random zone, so in effect you can't predict the location or route once you do it which is good for randomisation. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
FlightControl Posted February 6, 2017 Share Posted February 6, 2017 For the upcoming Viggen release I have thrown myself back into the ME and MIST trying to make a training mission with ships that respawn and follow the original route after being destroyed. The only way I've been able to do that was with the MIST script mist.goRoute('SHIP_original', mist.getGroupRoute('SHIP_original_route'))the group(single ship) SHIP_original_route has the same route setup as the SHIP_original group and is set to invisible and immortal but naturally it can still be seen by the player. Is there another way this can be done or do I just have to live with this one immortal ship sailing around. Thanks I strongly advise you to have a look here: https://github.com/FlightControl-Master/MOOSE/tree/master/Moose%20Test%20Missions/SPA%20-%20Spawning hope this helps, Sven [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE] Link to comment Share on other sites More sharing options...
Recommended Posts