Custom "Eyes" not involving raycasts
Posted: Wed Jul 27, 2016 5:01 pm
Hello. I'm really digging Love/Hate so far. It's incredibly detailed and obviously had a lot of love poured into it
I'm hoping to utilize it as much as possible for my project. However, I'm having a bit of trouble with NPCs witnessing deeds. My project is set up similar to a traditional text adventure game where the idea of a room is more abstract than an actual physical space you can see in the Unity editor. Because of this, my NPCs don't necessarily have coordinates or take up a space, and thus getting them to actually witness deeds has been a bit difficult.
I considered making a secondary version of the FactionMember class with a differently functioning DefaultCanSee method, but the way everything in your code is all tied together neatly makes me think this might not be the best way to do this.
Do you have any suggestions or ideas for how to best override the deed witnessing system (and others associated with/relying on visual witnessing) such that it can work within my game?
Thanks!
EDIT: Nevermind, I found the CanSeeDelegate in FactionMember! Now I just need to better understand how the DefaultCanSee functions.
Hmm... I'm noticing the delegate requires a dimension enum. Since I'm using neither 2D nor 3D, what should I do about this? Should I just add "Neither" to the enum options and use that, completely ignoring the use of the dimension in my method?
I'm hoping to utilize it as much as possible for my project. However, I'm having a bit of trouble with NPCs witnessing deeds. My project is set up similar to a traditional text adventure game where the idea of a room is more abstract than an actual physical space you can see in the Unity editor. Because of this, my NPCs don't necessarily have coordinates or take up a space, and thus getting them to actually witness deeds has been a bit difficult.
I considered making a secondary version of the FactionMember class with a differently functioning DefaultCanSee method, but the way everything in your code is all tied together neatly makes me think this might not be the best way to do this.
Do you have any suggestions or ideas for how to best override the deed witnessing system (and others associated with/relying on visual witnessing) such that it can work within my game?
Thanks!
EDIT: Nevermind, I found the CanSeeDelegate in FactionMember! Now I just need to better understand how the DefaultCanSee functions.
Hmm... I'm noticing the delegate requires a dimension enum. Since I'm using neither 2D nor 3D, what should I do about this? Should I just add "Neither" to the enum options and use that, completely ignoring the use of the dimension in my method?