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

      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
      • JipJ
        Jip
        last edited by

        All of that is possible via a map script.

        A work of art is never finished, merely abandoned

        S 1 Reply Last reply Reply Quote 1
        • S
          swarm-operator @Jip
          last edited by

          @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
          • JipJ
            Jip
            last edited by

            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

              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

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

                1 Reply Last reply Reply Quote 0
                • Anachronism_A
                  Anachronism_
                  last edited by

                  @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
                  • First post
                    Last post