Jump to content

Despawn/Respawn


Swany

Recommended Posts

Just learning ME (as in, I just started yesterday lol). So, what I have is a fueler that flies around the way points I've set, hits the end, turns, and goes back to the one I told it to switch to. It does things continuously until it runs out of fuel, then RTB's.

 

What I'm NOT sure how to make it do - Once it lands and parks, despawn then respawn and repeat, or refuel then take off again.

 

End Goal - get my MP server up for my friends and I can just walk away for hours on end (or days) but the refuelers will always be up. Basically a 24 hour operation.

 

Not necessarily looking for someone to walk me step by step, but if you could point me to a post/documentation? If it doesn't exist, then maybe hold my hand ;)

 

Swany

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Hey swany; check out MOOSE. This is probably the simplest way.

 

Download the MOOSE lua HERE

 

Create a .lua file using Notepad++ or a similar text editor and copy this code:

Spawn_Tanker = SPAWN:New("Tanker"):InitRepeatOnLanding()

Spawn_Tanker:Spawn()

 

In your mission, create a late activated unit at the desired airfield called Tanker.

 

Create a mission start type trigger, no conditions, actions = DO SCRIPT FILE (Moose_.lua)

 

Create a second trigger, no condition, action = DO SCRIPT FILE and select the .lua you created.

 

The aircraft should spawn at the beginning of the mission. Whenever the aircraft lands, another should automatically respawn to replace it.

 

It's been a while since I've noodled around with MOOSE so it is entirely possible I borked the code up as I wrote it from memory, but if it doesn't work look up MOOSE on YouTube; the author, FlightControl, has gone to great pains to explain how things work in detail and has written many sample missions.

  • Like 1
Link to comment
Share on other sites

I actually found MOOSE about 15 minutes ago and started looking at. Very powerful looking, and definitely worth learning from what I can gather.

 

however, for this simple map, I was hoping to avoid extra stuff. I keep reading posts (some old, some newer) where others were trying to do basically the same thing, and I've seen several people say "Just tell it to spawn another when the first lands" BUT NO ONE EVER SAYS HOW lol. For this training map I'm working on, this simple way would probably be great until I can learn MOOSE.

 

Any idea how to do that? (in the mean time, already watching MOOSE videos, etc ;) )

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Ok, got it! feefifofum, really appreciate the help! On to MOOSE I go!

 

One other question about MOOSE. If I build an MP map, throw some MOOSE stuff at it, but then I have to shut down my server, I have a buddy who can spin his up. Will the MOOSE code go with the map, so I can just send him the MIZ file, or will he also need to run MOOSE and have any/all libraries I have for/use on, the map?

 

 

**EDIT**

Just watched a video on triggers, how to set them up, etc. Yeah, I can see that being a major pain in the rear to use


Edited by Swany

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Awesome. Thank you again FFFF! Can already see how this is gonna be spec-tac-u-lar!

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Fe,

 

You ROCK! That code of yours for MOOSE was SPOT ON! It's PERFECT! It despawns the second it touches down, so that's a down side, and the new one pops in instantly and takes off. BUT, it's PERFECT for this map!

 

As for the despawning the second it touches down, that's something I can figure out later for immersion maps. This is a test map, so it's just fine the way it is

 

You have no idea how excited I am about this now. SO powerful! Oh the things I'll make it do!!

 

Again, thanks!

 

Brett "Swany" Swanberg

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

See, I knew it would be something simple! Thanks Grizzly! Much appreciated! Making the change now ;)

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

  • 3 years later...

you ever get that to work?   I have not discovered how to get AI Planes to land and taxi to a spot.  would love to hear from you.

306th TFS Home of the "WILDHARE's" :pilotfly::gun_sniper: A10,F-14, F-15, F16, F18, AV88, UH1,KA 50, Oculus Rift ,Hotas Warthog, Stable & Beta, VRK :: AMD Ryzen 7 2700 Eight Core 3.2 ghz, RAM- 32 GB, GeForce GTX 1070

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...