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

    [Another question]How do those different types of layer work on game?

    Scheduled Pinned Locked Moved Mapping
    8 Posts 3 Posters 429 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.
    • G
      Ghoustaq_14
      last edited by

      May they effect on the speed of units moving through on them? I am not sure, who knows the answer?
      layer type.jpg

      1 Reply Last reply Reply Quote 0
      • MadMaxM
        MadMax
        last edited by MadMax

        they produce different effects on the ground like dust and footprints the ones with the red circle symbol are blocking types it is all defined in terraintypes.lua

        Vault Admin / Creative Team / Map Guru

        G 1 Reply Last reply Reply Quote 0
        • G
          Ghoustaq_14 @MadMax
          last edited by

          @madmax said in [Another question]How do those different types of layer work on game?:

          they produce different effects on the ground like dust and footprints the ones with the red circle symbol are blocking types it is all defined in terraintypes.lua

          Thank you, Sir! It is a professional answer.👍

          1 Reply Last reply Reply Quote 0
          • JipJ
            Jip
            last edited by

            Technically they can also influence the movement speed, or any other unit property. There is a engine callback when a unit switches terrain type. The game just doesn't make use of it

            A work of art is never finished, merely abandoned

            G 1 Reply Last reply Reply Quote 0
            • G
              Ghoustaq_14 @Jip
              last edited by

              @jip said in [Another question]How do those different types of layer work on game?:

              Technically they can also influence the movement speed, or any other unit property. There is a engine callback when a unit switches terrain type. The game just doesn't make use of it

              is there a code that could make one unit's movement speed related with some terrain type. For example, one unit will slow down on rockyland and speed up on grassland.could it be realized by editing script.lua?

              1 Reply Last reply Reply Quote 0
              • JipJ
                Jip
                last edited by

                You'd need to do that in a mod, but that is possible yes. If you want to take that road you're better off asking in #modding-general on the official discord. Make sure to give yourself the modder role in #role-selection. There's a lot more activity on Discord

                A work of art is never finished, merely abandoned

                G MadMaxM 2 Replies Last reply Reply Quote 0
                • G
                  Ghoustaq_14 @Jip
                  last edited by

                  @jip said in [Another question]How do those different types of layer work on game?:

                  You'd need to do that in a mod, but that is possible yes. If you want to take that road you're better off asking in #modding-general on the official discord. Make sure to give yourself the modder role in #role-selection. There's a lot more activity on Discord

                  Thanks for advising!

                  1 Reply Last reply Reply Quote 0
                  • MadMaxM
                    MadMax @Jip
                    last edited by

                    @jip said in [Another question]How do those different types of layer work on game?:

                    You'd need to do that in a mod, but that is possible yes. If you want to take that road you're better off asking in #modding-general on the official discord. Make sure to give yourself the modder role in #role-selection. There's a lot more activity on Discord

                    you can do this in the map script

                    https://forums.faforever.com/viewtopic.php?f=53&t=19181

                    Vault Admin / Creative Team / Map Guru

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post