Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Put torch in inventory from wall
dasde Offline
Junior Member

Posts: 30
Threads: 6
Joined: May 2011
Reputation: 0
#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
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#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
dasde Offline
Junior Member

Posts: 30
Threads: 6
Joined: May 2011
Reputation: 0
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#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
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#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




Users browsing this thread: 1 Guest(s)