Download

Adding value to items based on weight

Would it be possible to some how add a monetary value to a mesh, based off of it’s weight? so for example if I have a game that you can find and sell scrap metal, and I set the weight for items, when they player goes to sell the items, they would have an amount added to their account based on the weight of those items?

Value=(price per one weight unit) * weight units of material.

If you have a metal like iron and it’s worth 5$ per kg, but you only have 0.3kg of it, you would have a value of 5*0.3=1.5$ worth.

nodes? Sorry I am a bit confused on this and not sure how to get to where I can set this… I am fairly new to UE4 and I’m still trying to learn this sorry.