WhiteAutumn

  • Content count

    27
  • Joined

  • Last visited

Community Reputation

2 Neutral

About WhiteAutumn

  • Rank
    Junior Member

Recent Profile Visitors

134 profile views
  1. Yep, I have a tag added at initialization which I check the owner of the widget to have before I do anything
  2. It works! Think I have all my questions answered now finally, my inquisition of the DST modding forums is over haha. A huge thanks to everyone who has helped me!
  3. Couldn't I override OnUpdate using AddClassPostConstruct then and change it to show changes in health caused by my mod? I'll keep this in mind if I am not able to modify the health badge to show changes in health from my mod, thanks!
  4. I suppose, however I would like it more if I could thematically stay away from the overheating effect. Using the overheating mechanic would invoke the sort of orange-y overlay would it not? Also wouldn't stuff like eating ice or endothermic firepits stop the overheating effect? I wouldn't want that.
  5. I tried with -5 health / second and it still does not trigger the arrow :/
  6. Your solution with an event for updating net vars worked, thank you!
  7. Something visual is exactly what I need updated sadly, a widget. I have modified the bloodover widget to show red if the player is in daylight and not sheltered. This works fine when the user is the host however when they are a client the sheltered event only gets fired on the server which means while the user does not take damage while standing under a tree they still see the red overlay because the client has not had a chance to update it. I suppose I could have a periodic task on the client checking if it needs to update the overlay ever second but that seems dirty.
  8. You're right! For whatever reason since I created my account my posts need to be approved by mods before they become public :/ edit: Looks like a mod while reading this message for approval removed my restriction! That or you need 20 posts approved before you can post without that limitation. Let me elaborate. I have the a listener for whenever shelter changes however that event only gets fired on the server and I need to update a thing on the client. I had the impression RPCs only work from client -> server but perhaps that's wrong?
  9. Hi! How does one call a function on the client from the server? Thanks in advance!
  10. That also crashes but this time at line 45 in bloodover.lua due to owner being nil. It's fine though, i've found a hacky workaround that does work. Turns out there's only one listener for the event "stopstarving" and that listener is the one in bloodover.lua which calls UpdateState so I can just push event stopstarving whenever I want UpdateState called and it works.
  11. I don't, i just figured since the health arrow thing that appears is a client sided thing perhaps you would need to call it on client. My problem is still that my health does decrease like intended however the arrow does not appear :/
  12. Testing just to make sure, running it from client does indeed not work, kind of out of options :/
  13. Testing the suggested change leaves the game in an infinite loop upon character load :/ edit: hold on something else seems to be causing that edit: Okay this time I have what actually happens. The game loads fine however on phase change it crashes: Line 70 is this (a part of previous code snippets): if (self.owner.IsFreezing ~= nil and self.owner:IsFreezing()) or
  14. Sorry that was a mistake from my trying to extract a more readable snippet from my mod, in code it's actually a dot. One thing I forgot to mention is that my code snipped runs only server side since I components can't be modified on the client (iirc), maybe that's useful for diagnosing the problem.
  15. Tested and does not work :/ Looking at the declaration of DoDelta in health.lua function Health:DoDelta(amount, overtime, cause, ignore_invincible, afflicter, ignore_absorb) You'd think overtime true would make the arrow appear :/