Hi Red,
Not sure if you'll have time, but if it's a nice quick job... can we also get access tp the OnPlayerSleepEvent again?
Hi Red,
Not sure if you'll have time, but if it's a nice quick job... can we also get access tp the OnPlayerSleepEvent again?
Sure, that could be added with the upcoming hotfix However, we have been thinking about adding a more generic event like PlayerChangeStateEvent instead - it would be called every time the player changes his state, e.g. sitting on a chair, lying in a bed, playing a piano etc. So this old code:
Would look like this in the new API:
The new event requires a bit more code, but in return, it provides access to other state changes as well (e.g. sitting on a chair, swimming, climbing ladders etc). Do you think that would work in your case?
Just confirming that that would work fine
onPlayerChangeState
Don’t have an account yet? Create a new account now and be part of our community!