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
Carrying something in inventory [JENS - NEED HELP PLEASE]
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Carrying something in inventory

If the user is to be able to take it out of their inventory and treat it as a normal grab entity, then i don't believe there is any practical sense in making it an inventory item in the first place. Also, if the user is capable of putting it back into their inventory, you would quickly realize there is no way to allow for this while allowing the user to hold it in their hand like any other grab entity. This is because the only way to prevent the item from entering the inventory again when attempting to grab the entity is to disable interaction. In which case, the entity would not be able to be carried anyway.

My suggestion is to forget about it being an inventory item and leave it as a grab entity, as there is no way to do what you want with HPL2. In HPL3 it would be possible, especially since you'd be allowed to have callbacks based on whether or not the user left-clicked or right-clicked on the item, and possibly even double-clicked or middle-clicked.

Tutorials: From Noob to Pro
(This post was last modified: 10-03-2011, 03:09 PM by Your Computer.)
10-03-2011, 03:03 PM
Website Find


Messages In This Thread
RE: Carrying something in inventory - by Your Computer - 10-03-2011, 03:03 PM



Users browsing this thread: 2 Guest(s)