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 226 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.
    • K Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post