Author Topic: How do I spawn a mission underwater in TFTD?  (Read 1641 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
How do I spawn a mission underwater in TFTD?
« on: June 06, 2023, 11:34:16 am »
The TFTD map pack is almost finished, just a few bugs left to squash before it is released.

After running into an unexpected problem I've redesigned the first part of some of the new two part terror missions so that both maps are now underwater.


At the moment the map spawns as a land mission like all other terror missions, how do I configure them be underwater when that siteType: is spawned?
« Last Edit: June 06, 2023, 11:42:28 am by The Martian »

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: How do I spawn a mission underwater in TFTD?
« Reply #1 on: June 06, 2023, 12:39:03 pm »
You mean it spawns on land part of the globe? Or sspawns over sea, but in tactical feels like surface?
First you can fix by setting spawn zone and region, similar to shipping terror from vanilla.
Second you can fix by defining "depth" in terrain or "alienDeployment" ruleset.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: How do I spawn a mission underwater in TFTD?
« Reply #2 on: June 10, 2023, 08:18:52 am »
Thank you this is great!

It even is allowing two part missions that start above water at depth: [0, 0] to use nextStage: and switch to underwater combat for the follow up mission. I've only tested it so far in the "New Battle" mode so hopefully there is no difference between how it operates there and in the normal campaign.