GiveItem(); vs. GiveItemFromFile(); - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: GiveItem(); vs. GiveItemFromFile(); (/thread-20770.html) |
GiveItem(); vs. GiveItemFromFile(); - ehovda321 - 03-16-2013 OK, here is the situation: GiveItemFromFile("battery_1", "item_battery.ent"); = This function gives me batteries in a STACK. GiveItem("battery_0", "item_battery.ent", "battery", "inventory_battery.tga", 1); = This function gives me batteries ONE at a time in the inventory... ? Is there any possible way to change the "GiveItem();" function, to make the batteries be given to player in a STACK ? Here is the item_battery.ent : Spoiler below!
RE: GiveItem(); vs. GiveItemFromFile(); - Your Computer - 03-16-2013 Try changing "item_battery.ent" to "LampOil" for GiveItem and see if that resolves anything. RE: GiveItem(); vs. GiveItemFromFile(); - Akos115 - 03-16-2013 Or just use GiveItemFromFile multiple times if you want to give the player lots of batteries. |