This is quickly becoming infuriating. I am triggering a script that is supposed to remove one item and replace it with another, but only the GiveItem is not working at all. Here's my script.
void PourPrecip(string &in precip, string &in acid_machine_bottle_empty04_2)
{
SetEntityActive("acid_machine_bottle_empty04_2", false);
SetEntityActive("acid_machine_bottle04_2", true);
RemoveItem("precip");
GiveItem("emptiness", "glass_container", "emptiness", "glass_container.tga", 1);
AddLocalVarInt("PrecipAdded", 1);
PlaySoundAtEntity("", "puzzle_add_chemical.snt", "acid_machine_bottle04_2", 1, false);
}
Works: GiveItem("emptiness", "glass_container_mix_done", "emptiness", "glass_container_mix_done.tga", 1);
Doesn't work: GiveItem("emptiness", "glass_container", "emptiness", "glass_container.tga", 1);
What in the love of all things holy.
Everything else in this function is working perfectly, but it won't give me the Glass Jar. I've also tried using "glass_container.ent" instead of "glass_container" but that won't work either.