Soul Filcher Posted April 20, 2017 Share Posted April 20, 2017 I've found this: http://projectzomboid.com/modding/se/krka/kahlua/integration/expose/LuaJavaClassExposer.html on exposing java classes to lua, but I know the class I want to use is already exposed (IsoPlayer). Could anyone tell me if it is possible to modify/override a public boolean or float in that class? Something like whenever public float x is called my own lua code runs and returns the needed changes. I've been able to learn a lot from this forum and existing mods out there but I couldn't find anything on this, and I'd rather avoid changing class files if I can. thiosk 1 Link to comment Share on other sites More sharing options...
Soul Filcher Posted April 20, 2017 Author Share Posted April 20, 2017 So, in luajava I can call luajava.bindclass("myclass") and then do something like: Spoiler local myClass = luajava.bindclass("MyClass"); local x = myClass.DesiredFloat(); --to get a public float called DesiredFloat inside that class and be able to change it. But that is luajava, what is the equivalent here? My example uses a public float but I actually want to use a public void. Higher powers, I'm trying to invoke you! thiosk 1 Link to comment Share on other sites More sharing options...
thiosk Posted April 20, 2017 Share Posted April 20, 2017 @Butter Bot might be able to navigate to the correct Power that Be to help, if he pops in and takes a peep Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now