HiraaCaan Posted October 16, 2022 Share Posted October 16, 2022 Spoiler Hat should be more down Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/ Share on other sites More sharing options...
IronHunter Posted October 16, 2022 Share Posted October 16, 2022 (edited) Klei recently added this function which I believe is used by walter. AnimState:SetHatOffset(x, y) This function offsets the hat symbol on relevant animations. Make sure it is called properly on the entity you want it called on. Most entities use inst as the variable name to refer to themselves. So inst.AnimState:SetHatOffset(x, y) Replace x, y with offset parameters which will require trial and error to make sure it fits what you want. X should be 0 and you can focus mostly on testing y for your client. Edited October 16, 2022 by IronHunter 1 Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/#findComment-1603235 Share on other sites More sharing options...
HiraaCaan Posted October 18, 2022 Author Share Posted October 18, 2022 (edited) On 10/17/2022 at 12:48 AM, IronHunter said: Klei recently added this function which I believe is used by walter. AnimState:SetHatOffset(x, y) This function offsets the hat symbol on relevant animations. Make sure it is called properly on the entity you want it called on. Most entities use inst as the variable name to refer to themselves. So inst.AnimState:SetHatOffset(x, y) Replace x, y with offset parameters which will require trial and error to make sure it fits what you want. X should be 0 and you can focus mostly on testing y for your client. Thanks! its worked :3 Edited October 18, 2022 by HiraaCaan 1 Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/#findComment-1603561 Share on other sites More sharing options...
dgb0o0 Posted October 26, 2022 Share Posted October 26, 2022 On 10/17/2022 at 6:48 AM, IronHunter said: Klei recently added this function which I believe is used by walter. AnimState:SetHatOffset(x, y) This function offsets the hat symbol on relevant animations. Make sure it is called properly on the entity you want it called on. Most entities use inst as the variable name to refer to themselves. So inst.AnimState:SetHatOffset(x, y) Replace x, y with offset parameters which will require trial and error to make sure it fits what you want. X should be 0 and you can focus mostly on testing y for your client. Hello, I have the same problem as OP and I stumbled onto this post. The problem is I can't seem to set the y value to a negative number. If I type in -5 for example, the "-" isn't recognized and the hat ends up going UP, when I need it to go the opposite way. I have barely any knowlegde on lua scripts so if any of you can help I'd be grateful. Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/#findComment-1604763 Share on other sites More sharing options...
Hornete Posted October 27, 2022 Share Posted October 27, 2022 4 hours ago, dgb0o0 said: Hello, I have the same problem as OP and I stumbled onto this post. The problem is I can't seem to set the y value to a negative number. If I type in -5 for example, the "-" isn't recognized and the hat ends up going UP, when I need it to go the opposite way. I have barely any knowlegde on lua scripts so if any of you can help I'd be grateful. Hi. In the animation engine the Y-axis is flipped. Positive number meaning lower, negative number meaning higher. If you want the hat to be lower, you'll need to put in a high number. Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/#findComment-1604802 Share on other sites More sharing options...
dgb0o0 Posted October 27, 2022 Share Posted October 27, 2022 4 hours ago, Hornete said: Hi. In the animation engine the Y-axis is flipped. Positive number meaning lower, negative number meaning higher. If you want the hat to be lower, you'll need to put in a high number. Ah I didn't know that, thank you! Link to comment https://forums.kleientertainment.com/forums/topic/143861-hat-is-so-up-when-my-modded-character-wear-it/#findComment-1604828 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