This is a little mini guide so it won’t be that big of a guide.So this is actually now my second guide but this time we are making edible items.So if you know what I mean that you get an item(for example a blueberry) and you want to “eat” it or “use” it, well if you try to do that you actually can’t which can be horrible for maps like surivial maps or etc since you would want food, well there is a way(mines is probably super ineffecient) but now lets start
materials
x vending machines
x health granters
1 gameoverlay
(x means that you put the same ammount of vm and hg(not if they heal the same though)
also its 145 memory per food
so yeah the materials arent that organized
step 1
Ok so first we actually need “food” so maybe get stuff like strawberrys and blueberrys, now what we need to do first is get a game overlay that is not team or gobal scope.Which is easy right??So with that game overlay make it a button, then make the text whatever you want, but in this case its “eat”
so uhm yeah thats all the overlay is for not that much because you could actually just use a button but gameoverlay is still good
step 2
now with the vending machines( is not visable) we set them up with the gameoverlay, which is just making the button send a channel or wire, in this case its check for individual “food”
So now we are finally close to being done
step 3
Ok now with that each of those vending machines that each check for individual “food” now are connected to a health granter which checks if the “food” being “eaten” is this or that.
In this case its a blue berry and it will give you shield 20
Now only read whats in the botton if you read the entire mini guide
So now time to explain the little problem with this mini guide you cant only eat 1 food instead it checks for all the food and “eats” that which is rlly annoying also with how this again isn’t the most memory efficient thing (but at least it helps out for survival games)