Hello all. I’ve been wrestling with widgets for awhile now. I can’t seem to get this working properly.
I’d like the widget to change accordingly depending what helmet the player is wearing.
No helmet = No overlay
Gas mask = Gas mask lens overlay
Motorcycle helmet = Smudgy plastic visor overlay
I was able to get one working, but it’s pretty static for all of the other helmets. Should this be handled inside of a struct or a data table?
Can you post your implementation? iIts hard to say whats wrong, how are you reusing your widget? You could map your outfit classes(good to have some id) with structs and init your widget when outfit changed. Having struct allows your to add some features in the future (stats?)
It’s basically like that right now, I have the Player Unknown’s Battleground helmet so when that’s worn, you only have a small opening to see out of, where as a motorcycle helmet has much more visibility.
I have already created the overlays & widgets, just need to pop the code into the helmets.