I think this is what I’ll need to make this gameplay feature work:
- An object with a component that contains the logic for being grabbed and put back down; not sure what I would inherit from at this point, so I would just make my own component (though some homework might find a component that already exists that I can inherit from). It would need a trigger volume or even just a variable for the range the player has to be from it to interact with it. It might have a weight value if I wanted the pressure plate to require a minimum amount of weight (or even a specific weight to make it more of a puzzle) to trigger the OpenDoor function.
- Some form of highlighting the grabbable items, like a color, or a highlight, or even just a tooltip that shows up when you get within a trigger volume around the item.
- An input would need to be set that ties to the “grab” function (say maybe ‘g’) and either use it as a toggle (press the same key to drop) or use a separate key to drop.