Jump to content

Recommended Posts

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 post
Share on other sites

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

  • Like 1
Link to post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...