ChaiScript integration with managed functions?
-
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 likeplayer
andself
. -
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.
-
Hmm, is there any documentation I can read to know the functions and entities exposed to Chai?
-
There should be a post by homura somewhere.
-
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.