Halved Posted November 24, 2014 Share Posted November 24, 2014 I am following the Sample Character mod, and there is only one set of face templates for when the character is looking on the side. From that I realised the characters' faces just get mirrored when they look on the opposite direction, but my character has only one eye, the left one, so if he looks to the right his eye is isn't visible. How can I solve this problem? Link to comment Share on other sites More sharing options...
seronis Posted November 24, 2014 Share Posted November 24, 2014 You will need to do two builds one containing an eye and one not. Then when looking the direction you want you will need to actually swap the build so you're using the other artwork. Link to comment Share on other sites More sharing options...
Halved Posted November 24, 2014 Author Share Posted November 24, 2014 That didn't help ma at all. Link to comment Share on other sites More sharing options...
Mobbstar Posted November 24, 2014 Share Posted November 24, 2014 That means you need to apply a different animation when the guy's looking the other way. Or you make an entirely new animation (not practically an option) Link to comment Share on other sites More sharing options...
Heavenfall Posted November 24, 2014 Share Posted November 24, 2014 You think you can run a function that continuously checks inst.AnimState:GetCurrentFacing() and depending on that replace your character's inst.AnimState:SetBuild(). Link to comment Share on other sites More sharing options...
Heavenfall Posted November 24, 2014 Share Posted November 24, 2014 Tried this, seems to work pretty good from prefab inst:DoPeriodicTask(0.01, function (inst) if inst.AnimState:GetCurrentFacing() == 0 then inst.AnimState:SetBuild("wilson") else inst.AnimState:SetBuild("webber") end end) Link to comment Share on other sites More sharing options...
Halved Posted November 24, 2014 Author Share Posted November 24, 2014 Thanks...I guess.The problem is I...*sigh*...I know nothing or so about coding...Could you do a step-for-step process for me?Please? Link to comment Share on other sites More sharing options...
Heavenfall Posted November 25, 2014 Share Posted November 25, 2014 I'm sorry, you should be able to find your way from here. Perhaps read a guide about making your own character. All you need for my code to work is one extra texture and to know which prefab file is your character's. Link to comment Share on other sites More sharing options...
Halved Posted November 25, 2014 Author Share Posted November 25, 2014 allright Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.