tommysticks Posted July 30, 2015 Share Posted July 30, 2015 Anyone know if we can access player model textures through Lua? I was able to access weapon textures through it, pretty sure I can change them in-game but haven't tried it yet. I just don't know how to access player textures. I am able to access the weapon texture through this line:pWorTe = player:getPrimaryHandItem():getWorldTexture();This returns the following for example:media/inventory/world/WItem_Fork.png This leads me to believe I could change that in-game as long as a new texture was loaded. Haven't tested this yet, but I will today. Still would like some advice on how to access player model texture. Link to comment Share on other sites More sharing options...
Fuji Posted August 4, 2015 Share Posted August 4, 2015 Anyone know if we can access player model textures through Lua?I was able to access weapon textures through it, pretty sure I can change them in-game but haven't tried it yet. I just don't know how to access player textures.I am able to access the weapon texture through this line:pWorTe = player:getPrimaryHandItem():getWorldTexture();This returns the following for example:media/inventory/world/WItem_Fork.pngThis leads me to believe I could change that in-game as long as a new texture was loaded. Haven't tested this yet, but I will today.Still would like some advice on how to access player model texture.I don't know if you still need help with this, but the way player models/textures are handled is a bit janky, so I don't think its possible as of now. Your best bet is to bother Jab to include support for it in his ModelLoader. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted August 4, 2015 Share Posted August 4, 2015 The only function available is IsoPlayer:getModel(). What it returns, I've no idea. Link to comment Share on other sites More sharing options...
tommysticks Posted August 6, 2015 Author Share Posted August 6, 2015 The only function available is IsoPlayer:getModel(). What it returns, I've no idea.Where did you find that? I'm looking here and not seeing it. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted August 6, 2015 Share Posted August 6, 2015 Decompiled stuff: C:\Users\EG\Desktop\zombie\characters\IsoGameCharacter.java (1 hit)Line 201: public ModelInstance getModel() There is also a setModel() function. Didn't notice it earlier. It's also in the updated Javadoc Kirrus and I put up (which I now can't find . . . ). Link to comment Share on other sites More sharing options...
tommysticks Posted August 6, 2015 Author Share Posted August 6, 2015 Decompiled stuff: C:\Users\EG\Desktop\zombie\characters\IsoGameCharacter.java (1 hit)Line 201: public ModelInstance getModel() There is also a setModel() function. Didn't notice it earlier. It's also in the updated Javadoc Kirrus and I put up (which I now can't find . . . ). Found it here. Thanks. 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