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

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. [chaiscript] Need help to interact with chat_message

[chaiscript] Need help to interact with chat_message

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
4 Posts 4 Posters 179 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.
  • aron9711undefined Offline
    aron9711undefined Offline
    aron9711
    wrote on last edited by aron9711
    #1

    Re: [Feature Request] Allow Chai to execute commands.

    I'm kina new to Chaiscript.
    Is it currently available to interact with chat messages?

    The server executed this function (I typed some characters to chat), but nothing happened.

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

    I would really appreciate if somebody could provide me a working example code.

    1 Reply Last reply
    0
    • fedundefined Offline
      fedundefined Offline
      fed
      wrote on last edited by fed
      #2

      Doubt chat_message even exists and arguments usually has either the player or nothing at all so you’re probably better off making a IW4M plugin

      1 Reply Last reply
      0
      • naccibundefined Offline
        naccibundefined Offline
        naccib
        wrote on last edited by
        #3

        I recall xensik's Plutoscript framework being able to respond to chat message events. For some reason, it doesn't seem to be supported anymore - maybe due to some "memory permission" issues he mentioned after a Pluto IW5 update.

        1 Reply Last reply
        0
        • S3VDITOundefined Offline
          S3VDITOundefined Offline
          S3VDITO
          wrote on last edited by
          #4

          OnNotify only catches in-game notifications that can be used in GSC scripts. Everything else is unmanaged code, alas, you can't do anything here

          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