Been searching a bit and I can't find out how to get it to work.
void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);
Adds an item to the inventory of the player. Note that the item does not have to exist as entity in the world to be able to do this.
asName - internal name
asType - item to give
asSubTypeName - item name for .lang file
asImageName -
afAmount - amount to give
(from the FG wiki)
void FillContFunc (string &in asItem, string &in asEntity)
{
RemoveItem(asItem);
GiveItem("FullCont", "glass_container_mix_done", "glasscontainer_full", "", 1);
}
What's wrong with this? It removes the empty glass container but it doesn't give me the filled one.
I know how to use GiveItemFromFile but then I don't get my custom set name and description, besides it says on the FG wiki that script is mostly for debug purposes. (I do use the GiveItemFromFile function to get the items otherwise when In debug mode)