Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Put torch in inventory from wall
Author Message
dasde Offline
Junior Member

Posts: 30
Joined: May 2011
Reputation: 0
Post: #1
Put torch in inventory from wall
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
(This post was last modified: 07-23-2011 07:23 PM by dasde.)
07-23-2011 07:19 PM
Find all posts by this user Quote this message in a reply
Angerpull Offline
Member

Posts: 88
Joined: Jun 2011
Reputation: 0
Post: #2
RE: Put torch in inventory from wall
(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.
07-23-2011 07:30 PM
Find all posts by this user Quote this message in a reply
dasde Offline
Junior Member

Posts: 30
Joined: May 2011
Reputation: 0
Post: #3
RE: Put torch in inventory from wall
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.
07-23-2011 07:49 PM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #4
RE: Put torch in inventory from wall
Yes it's an item now. You only need to make a image for that item.
how? I don't know.

[Image: 44917299.jpg]Dubstep <3
07-23-2011 09:00 PM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #5
RE: Put torch in inventory from wall
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.

07-23-2011 10:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)