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

    Giving a simple command to a unit

    Scheduled Pinned Locked Moved Modding & Tools
    2 Posts 2 Posters 246 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.
    • KatawungaK
      Katawunga
      last edited by

      Could someone explain to me how in LUA a move command can be given to a currently selected unit?

      1 Reply Last reply Reply Quote 0
      • UvesoU
        Uveso
        last edited by Uveso

        IssueMove(tableOfUnits, position)

        https://github.com/FAForever/fa/blob/deploy/fafdevelop/engine/Sim.lua#L870

        Have in mind those command only work in the SIM-State of the game.
        That means all players need this mod installed in a network game or you will get desyncs.

        Before you ask, there is no move command for the UI-State of the game.

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