The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Changing item interaction?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Changing item interaction?

I've done some searching, but haven't quite been able to figure out how to change the way a player interacts with an item. I know that I have to make new files for each version of the item, but I don't know what to change about it.

Example 1: I've laid the arm of a corpse on the ground, but want the player to be unable to pick it up and move it.

Example 2: This one's more complicated. I want the player to pick up an item into their inventory (a stone), but when they use it on a stand, you can't move it but can use an item on it. Then, once you do use the necessary item on it, it becomes an item that you can now carry and throw like the normal stones in the game.

I realize that last example will require three different item files, but I don't know what I have to change about them to make them interact differently.
03-09-2012, 07:19 AM
Find


Messages In This Thread
Changing item interaction? - by Damascus - 03-09-2012, 07:19 AM
RE: Changing item interaction? - by flamez3 - 03-09-2012, 07:26 AM
RE: Changing item interaction? - by Damascus - 03-09-2012, 07:46 AM
RE: Changing item interaction? - by flamez3 - 03-09-2012, 07:50 AM
RE: Changing item interaction? - by palistov - 03-09-2012, 09:39 AM
RE: Changing item interaction? - by Damascus - 03-11-2012, 12:56 AM



Users browsing this thread: 1 Guest(s)