Sending the user through Usable.
Posted: Tue Sep 17, 2024 10:36 pm
Maybe a weird question. I'm just getting into this system and I was noticing the Usable class. I figured I might consolidate my own interaction system and just use this.
The downside to this idea is that it looks like the use functions cannot pass data through them? Is there a clean way to tell and object who interacted with them?
If the game only had players interacting that wouldn't be too big of a deal, but the critters in my game interact with items and one another.
Just trying my best to not have two different interaction systems in the game. So if this exist in some fashion that'll be handy. Perhaps I'm looking at the problem wrong, not sure.
The downside to this idea is that it looks like the use functions cannot pass data through them? Is there a clean way to tell and object who interacted with them?
If the game only had players interacting that wouldn't be too big of a deal, but the critters in my game interact with items and one another.
Just trying my best to not have two different interaction systems in the game. So if this exist in some fashion that'll be handy. Perhaps I'm looking at the problem wrong, not sure.