[SCRIPT] Can't pick up my custom item - 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: [SCRIPT] Can't pick up my custom item (/thread-16646.html) |
Can't pick up my custom item - Amce - 07-01-2012 Hi, i've made a custom item, a type of key to be exact, and it works nicely ingame, I can see it glowing blue lying there on the ground. However, when i click it, nothing happens. I can't pick it up. Has anyone had the same problem and how did you solve it? Also, I searched for but couldnt find, a way to make an item unable to be picked up, for example a key lying by the fire, so that when u try to pick it up it says something like, "The Key is too hot to pickup!". But after some random event a func should be activated to enable the key to be picked up. I hope you understand! thanks! RE: Can't pick up my custom item - Cruzore - 07-01-2012 maybe a script area around it, that when interacted with it tells you that the key is too hot, and after some random event youd eactive that script area? Just an idea though. And for the first problem, It probably doesn't go into the inventory properly. Idk how to fix it, but look at the settings of it in the model editor(or, compare it to a key of the main game) RE: Can't pick up my custom item - Your Computer - 07-01-2012 IIRC, items require inventory images of a certain size before they can be picked up. As for your other issue, if the entity type allows you to destroy the entity, then you can use that to replace the entity with an entity of an item type. RE: Can't pick up my custom item - Amce - 07-03-2012 (07-01-2012, 03:05 PM)Your Computer Wrote: IIRC, items require inventory images of a certain size before they can be picked up. Ah sweet, you helped me solve my un-uppickable item issue, I just used SetEntityInteractionDisabled("key", true); And the key became a item that wasn't interactable, even though I didnt find out how to show text when u tried to pick it up it will have to do :) |