Solved How to make multiple spawn points?

Discussion in 'Mod Support' started by Alewyx, Jan 5, 2017.

  1. Alewyx

    Alewyx
    Expand Collapse

    Joined:
    Nov 26, 2016
    Messages:
    2,060
    Title says it
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Have a look on how official maps do it, it's probably the easier way to get it as you have a working example right in front of you :)
     
  3. Alewyx

    Alewyx
    Expand Collapse

    Joined:
    Nov 26, 2016
    Messages:
    2,060
    thanks m8
     
  4. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    Hey,

    there are actually just two things you need to care about.

    1. Add new spawnSpheres to your map. You can just copy/paste the default one and move them. Give these spawnSpheres unique names, you will need them later on. Also make sure that they are in the PlayerDropGroup group.



    2. Open the info.json file of your map. Here you'll need to add an array of spawnPoints. Each element contains the following properties:
    • translationID: It's the name of the spawn point. It's called translationId cause our spawn points can be translated into other languages. Anyways you can also just enter a normal string in here and it will work.
    • objectname: It's the exact same name you specified before in the editor.
    • preview: Of course it's the preview image of the spawn point in the level selector.
    Also add a defaultSpawnPointName to that json file to specify the deafult spawn point.



    That's probably it. If you have any questions don't hesitate to ask.
     
    • Like Like x 1
  5. Alewyx

    Alewyx
    Expand Collapse

    Joined:
    Nov 26, 2016
    Messages:
    2,060
    Ok, I'll do then
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice