• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login
FAForever Forums
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

Spawning a team in a random position

Scheduled Pinned Locked Moved Mapping
spawnteam
7 Posts 3 Posters 563 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    swarm-operator
    last edited by swarm-operator 22 Jun 2022, 15:05

    I would like to make a map where teams of 2-4 players spawn at one of a number of spawn sites, but randomly. Is it possible to spawn team members next to each other in a random position? Say there are 6 spawn sites (each with 4 ACU spawns) and each team spawns at a random site.

    1 Reply Last reply Reply Quote 0
    • J
      Jip
      last edited by 22 Jun 2022, 15:20

      All of that is possible via a map script.

      A work of art is never finished, merely abandoned

      S 1 Reply Last reply 22 Jun 2022, 15:24 Reply Quote 1
      • S
        swarm-operator @Jip
        last edited by 22 Jun 2022, 15:24

        @jip How will that work with an FAF lobby? Can I just set random spawns and teams and it will be able to set the spawn positions accordingly?

        1 Reply Last reply Reply Quote 0
        • J
          Jip
          last edited by 22 Jun 2022, 15:26

          You'd have little to no control of it in the lobby. It would happen after starting the game, right before people spawn. There you can adjust the start location of armies via script.

          A work of art is never finished, merely abandoned

          1 Reply Last reply Reply Quote 0
          • S
            swarm-operator
            last edited by swarm-operator 22 Jun 2022, 15:30

            So there are no parameters from the lobby passed to the map script where I could base the spawns on? So if there is a list of spawn positions then use those, if there is a list of teams, then spawn them together etc. ? I could only effectively have a single spawn strategy with a setup like this, do I understand correctly?

            1 Reply Last reply Reply Quote 0
            • S
              swarm-operator
              last edited by 22 Jun 2022, 15:58

              Perhaps it is possible with adaptive maps.. Thanks for your help, I will look more into it.

              1 Reply Last reply Reply Quote 0
              • A
                Anachronism_
                last edited by 24 Jun 2022, 04:07

                @longhead
                You can make a map with custom lobby options that can do what you described that you want, but you'd have to code the functionality to make it happen. You can look at what some adaptive maps do for some examples of how custom lobby options can be set up.

                pfp credit to gieb

                1 Reply Last reply Reply Quote 1
                3 out of 7
                • First post
                  3/7
                  Last post