Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. [Feature Request] Allow Chai to execute commands.

[Feature Request] Allow Chai to execute commands.

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
7 Posts 5 Posters 244 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Xerxesundefined Offline
    Xerxesundefined Offline
    Xerxes Plutonium Staff
    wrote on last edited by
    #1

    Allow Chaiscript to execute commands like map_rotate.

    Shockehundefined 1 Reply Last reply
    0
    • floxundefined Offline
      floxundefined Offline
      flox
      wrote on last edited by
      #2

      I agree

      1 Reply Last reply
      0
      • Shockehundefined Offline
        Shockehundefined Offline
        Shockeh
        replied to Xerxes on last edited by
        #3

        I also hope they will allow us to create custom commands like we did on IW4x, I mean I hope they will add something like the onPlayerCommand() function

        tomundefined 1 Reply Last reply
        0
        • tomundefined Offline
          tomundefined Offline
          tom
          replied to Shockeh on last edited by
          #4

          Shockeh You can listen for chat messages using the chat_message level notify.

          1 Reply Last reply
          0
          • Sorexundefined Offline
            Sorexundefined Offline
            Sorex Contributor
            wrote on last edited by
            #5

            tom how? level.onNotify("chat_message ") and what i do after this?

            tomundefined 1 Reply Last reply
            0
            • tomundefined Offline
              tomundefined Offline
              tom
              replied to Sorex on last edited by
              #6

              Sorex

              level.onNotify("chat_message", fun(arguments) {
                 var player = arguments[0];
                 var message = arguments[1];
              });
              

              Player and message might be reversed so just experiment with it.

              Shockehundefined 1 Reply Last reply
              0
              • Shockehundefined Offline
                Shockehundefined Offline
                Shockeh
                replied to tom on last edited by
                #7

                tom said in [Feature Request] Allow Chai to execute commands.:

                level.onNotify("chat_message", fun(arguments) {
                var player = arguments[0];
                var message = arguments[1];
                });

                that's actually insane. Thanks so much.

                1 Reply Last reply
                0

                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Donate