Kenpachi™ Posted October 16, 2013 Share Posted October 16, 2013 Can i (in my mod) set/get custom player data (example - setBulletsSpend (like setZombieKills)) and will this data save after exit game?And from where calls getPlayer() function? At last: how i can run java code in mod and how to read/write file (I/O as i realized, in lua, disabled) Thank you for your attention. Link to comment Share on other sites More sharing options...
RoboMat Posted October 16, 2013 Share Posted October 16, 2013 What you are looking for is getModData() (at least if I understood you correctly ). You can only use "exposed" (public) Java functions from your lua code. Kenpachi™ 1 Link to comment Share on other sites More sharing options...
Kenpachi™ Posted October 16, 2013 Author Share Posted October 16, 2013 What you are looking for is getModData() (at least if I understood you correctly ). You can only use "exposed" (public) Java functions from your lua code.Yes, this is what I need, thx! Link to comment Share on other sites More sharing options...
RoboMat Posted October 16, 2013 Share Posted October 16, 2013 Be careful though: You can only save strings and numbers at the moment! Kenpachi™ 1 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