Posted July 26, 20205 yr I'm looking to store a variable to be used in a player tick event for each player. For example say I want the float 'distance' as a variable my tick event can access, but I want there to be a different instance of 'distance' for each player. This is asuming player tick event fires for each player, which I now realise it may not. Is there anyway to achieve this? I'd rather not use capabilities to store this as it's a really simple variable. Thanks for your help!
July 26, 20205 yr I'm afraid player capability is the only way to achieve this afaik. It is not as simple as storing the data in the fields in your event class (which won't work), but it is the only way I can think of. Also it is not so complicated isn't it? Edited July 26, 20205 yr by poopoodice
July 26, 20205 yr Author 3 minutes ago, poopoodice said: not so complicated isn't it? It's not I was just seeing if I could fit an entire mod in one class for fun I guess not, thanks for the help!
July 26, 20205 yr 5 minutes ago, squidlex said: It's not I was just seeing if I could fit an entire mod in one class for fun Interesting haha Edit: I misread your post. Edited July 26, 20205 yr by poopoodice
July 27, 20205 yr Author 4 minutes ago, poopoodice said: inner class count as a "class" for you? You know what I completely forgot I could do that! Time to try this again haha thanks man (I'm very tired) Edited July 27, 20205 yr by squidlex
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.