Frictional Games Forum (read-only)
Put torch in inventory from wall - 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: Put torch in inventory from wall (/thread-9322.html)



Put torch in inventory from wall - dasde - 07-23-2011

Hello

I want to make a script for my custom story where you click on a torch on the wall, it goes inactive (invisible) and you get it in your hand or inventory, and then you will use it on something, like you would use a key on a door.

Specifically it is a torch used to burn an enemy.


I hope you guys get what I mean, I don't know where to start.

Thanks


RE: Put torch in inventory from wall - Angerpull - 07-23-2011

(07-23-2011, 07:19 PM)dasde Wrote: Hello

I want to make a script for my custom story where you click on a torch on the wall, it goes inactive (invisible) and you get it in your hand or inventory, and then you will use it on something, like you would use a key on a door.

Specifically it is a torch used to burn an enemy.


I hope you guys get what I mean, I don't know where to start.

Thanks

If you want this to happen, you must go into the model editor and edit the torch to become an ITEM and not a Static Object. I am no Model Editor so I am unsure on how to do this, but it has to become and item. Once you've done that, create an image and place it on the item so it has an image inside the inventory.




RE: Put torch in inventory from wall - dasde - 07-23-2011

Okay so now I have made it an Item, and when I go ingame I get the blue outline on it and a little hand to click with, but when I click on the torch nothing happens.


RE: Put torch in inventory from wall - xtron - 07-23-2011

Yes it's an item now. You only need to make a image for that item.
how? I don't know.


RE: Put torch in inventory from wall - palistov - 07-23-2011

You need to create an image for the item, or you won't be able to put it in your inventory. The file has to be in tga format. Use GIMP, Photoshop, or a quality image editing program to create it. The file needs to be in the graphics/item/ folder. Good luck.