Mero-Mayhem Posted November 4, 2020 Share Posted November 4, 2020 Hello together. I want some air traffic on my mission. I want some endles respawn. I have seen following tutorials: In cause of that I made the following lines: local C17A=RAT:New("RATC17A") C17A:SetDeparture("Ramat David") C17A:SetDestination("Haifa") C17A:Spawn(1) C17A:SpawnScheduled( 5, 0 ) C17A:InitCleanUp(60) The C17 spawns im Ramat David, flies to Haifa and despawns. But the C17 did not spawn again. Should be respawned after 60 Sec. What have I done wrong? (Moose ist implimented) Does anyone have the right code for me? Thank you very mutch. Link to comment Share on other sites More sharing options...
dark_wood Posted November 5, 2020 Share Posted November 5, 2020 I think you need C17A:RespawnAfterLanding(delay), or C17A:_Respawn(index, lastpos, delay) https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Functional.Rat.html##(RAT).RespawnAfterLanding or use commute - see the example from MOOSE documentation page: https://flightcontrol-master.github.io/MOOSE_DOCS/Presentations/RAT/RAT_Examples_Specify_Departure_and_Destination.png (last example) https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Functional.Rat.html 1 Link to comment Share on other sites More sharing options...
Mero-Mayhem Posted November 6, 2020 Author Share Posted November 6, 2020 Thank you a lot. The first Link could solve my problem. I will test it soon. Is it possible to create a AWACS or a Tanker with RAT, to or do i need something else? Link to comment Share on other sites More sharing options...
dark_wood Posted November 6, 2020 Share Posted November 6, 2020 With pleasure :) You can spawn any air unit with RAT, just do/duplicate a template unit, like you do with the others. Link to comment Share on other sites More sharing options...
Mero-Mayhem Posted November 6, 2020 Author Share Posted November 6, 2020 I tried to spawn an AWACS in the Air with a trigger Zone, to fly from Zone to Zone, but nothing happened. What have i done wrong? AWACSBLUE=RAT:New("AWACSBLUE") AWACSBLUE:SetAWACS() AWACSBLUE:SetTakeoffAir() AWACSBLUE:SetDeparture("TZ_AWACS_BLUE_01") AWACSBLUE:destinationZone() AWACSBLUE:SetDestination("TZ_AWACS_BLUE_02") AWACSBLUE:SetCallsign(CALLSIGN.AWACS.OVERLORD, 1) AWACSBLUE:SetRadio(271) AWACSBLUE:SetAltitude(28000) AWACSBLUE:SetSpeed(320) AWACSBLUE:RespawnAfterCrashON() AWACSBLUE:Start() The same with the AWACS from the Carrier. Nothing happaned. Why? awacsCVN74=RECOVERYTANKER:New(UNIT:FindByName("CVN74 JCS"), "CVN74E2D") awacsCVN74:SetCallsign(CALLSIGN.AWACS.MAGIC, 1) awacsCVN74:SetTakeoffAir() awacsCVN74:SetAltitude(25000) awacsCVN74:SetSpeed(320) awacsCVN74:SetRadio(272) awacsCVN74:Start() awacsCVN74:RespawnAfterCrashON() awacsCVN74:RespawnAfterLanding(35) The same with the Tanker from the Carrier. Nothing happaned. Why? TEXCVN74=RECOVERYTANKER:New(UNIT:FindByName("CVN74 JCS"),"CVN74TEX") TEXCVN74:SetCallsign(CALLSIGN.TANKER.TEXACO, 1) TEXCVN74:SetTakeoffAir() TEXCVN74:SetTACAN(22, "TEX") -- Definiert TACAN. Bsp: 22Y, Code TEX (TACAN ist hier immer Y!) TEXCVN74:SetAltitude(15000) TEXCVN74:SetSpeed(320) TEXCVN74:SetRadio(220) TEXCVN74:Start() TEXCVN74:RespawnAfterCrashON() TEXCVN74:RespawnAfterLanding(35) TEXCVN74:SetDebugModeON I did it like the discription on the MOOSE-Webside but nothing happened. If it work, it should work with a respawn after despawn. You are my hero if you can tell me how to do it right. Link to comment Share on other sites More sharing options...
Zeagle Posted November 6, 2020 Share Posted November 6, 2020 Mero...you need to look at your DCS log to see what the errors are. Maybe your group is named wrong in the sim. You are using the UNIT:FindByName function. So you are looking at the unit, not the group name. Check your unit names. Link to comment Share on other sites More sharing options...
dark_wood Posted November 6, 2020 Share Posted November 6, 2020 Also, do you have the groups in mission editor, with late activation? Link to comment Share on other sites More sharing options...
dark_wood Posted November 6, 2020 Share Posted November 6, 2020 One more thing, you should replace TEXCVN74:Start() with TEXCVN74:Spawn(1) Link to comment Share on other sites More sharing options...
Mero-Mayhem Posted November 6, 2020 Author Share Posted November 6, 2020 Hello thank you for your answers. >> Mero...you need to look at your DCS log to see what the errors are. Maybe your group is named wrong in the sim. You are using the UNIT:FindByName function. So you are looking at the unit, not the group name. Check your unit names. Have i done but there is no entry. >> Also, do you have the groups in mission editor, with late activation? Yes. >> One more thing, you should replace TEXCVN74:Start() with TEXCVN74:Spawn(1) Ok, I will try, thank you. Does it work if you tried it? Have you tested it by your self? Link to comment Share on other sites More sharing options...
Recommended Posts