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

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. ChaiScript integration with managed functions?

ChaiScript integration with managed functions?

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
6 Posts 2 Posters 164 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.
  • naccibundefined Offline
    naccibundefined Offline
    naccib
    wrote on last edited by
    #1

    Are managed functions/entities acessible in ChaiScript?

    By managed functions I mean functions like GSC's getCurrentWeapon, spawn waittill. And by entities I mean those like player and self.

    1 Reply Last reply
    0
    • RektInatorundefined Offline
      RektInatorundefined Offline
      RektInator Plutonium Admin
      wrote on last edited by
      #2

      Yes, entities are exposed to chai. You can also call methods on these entities. Waittill is not implemented but instead you can use onNotify. This function exists on all entities and on the level object for level notifies.

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

        Hmm, is there any documentation I can read to know the functions and entities exposed to Chai?

        1 Reply Last reply
        0
        • RektInatorundefined Offline
          RektInatorundefined Offline
          RektInator Plutonium Admin
          wrote on last edited by
          #4

          There should be a post by homura somewhere.

          1 Reply Last reply
          0
          • RektInatorundefined Offline
            RektInatorundefined Offline
            RektInator Plutonium Admin
            wrote on last edited by
            #5

            https://forum.plutonium.pw/topic/571/tutorial-chaiscript-for-iw5?_=1587033821837

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

              Yes, he links two great references for ChaiScript itself. I'm trying to find what is exposed to it, which he doesn't mention 😕

              Maybe if you know where the MW3-ChaiScript interface is done, I can use the ChaiScript source code as reference.

              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