1. How send player.SendConsoleCommand("bind i chat.say \"duel y\"")
    with args

    ok, how on client bind key bind i chat.say \"duel y\"

    Why i get in console command args[2] = {"y", "True"}
    WTF true?
     
    Last edited by a moderator: Feb 21, 2017
  2. Wulf

    Wulf Community Admin

    Code:
    player.SendConsoleCommand("bind i \"chat.say duel y\"")
    Should work.
     
  3. Thanks
     
  4. I'm not going to, but doesn't this mean you could re-bind an entire persons keyboard and then writecfg so that it saves? (for rust only obviously)
     
  5. HotKeys Plugin can do exactly that
     
  6. Wulf

    Wulf Community Admin

    Can be done without it too, it's part of Rust. ;)
     
  7. Yeah but it's sometimes easier to look at existing code when trying to write something :D
     
  8. After the last update (16.02) binds bind h chat.say "/home 1" stopped working. Is there a way to make such a bind?
    This code does not work, too:
    Code:
    player.SendConsoleCommand("bind h \"chat.say /home 1\"")
     
  9. Hello there,

    One of last updates broke binds that writes with space. For ex. : bind h "chat.say /home 1" - did not work.
    Tried tons of variants. Found coulpe of posts from Wulf, but nothing helps me. If someone know how to fix it, please tell.

    Also:
    bind h "chat.say \"/home 1\"" - did not work.
    bind h chat.say "/home 1" - did not work.
    bind h \"chat.say /home 1\" - did not work.
    (to prevent Wulf to doulbe post already tried variants )
    Did not work with all binds that contains space in words (bind q "chat.say bla bla bla" will produce only one "bla" in chat after pushing Q)
    With other bind, like bind q "chat.say /tpa" (that does not contains a space in words) - works great.

    Thank you, for all your answers.