Hello,
I am working on a condition I want to implement in my game where NPCs and other events react differently if the player were to interact with the NPC, or any event, from via North,South, West, and East. Is there a way to do this? I am assuming some scripting will be involved which I don't mind.
Example:
An object is being destroyed differently depending on the direction the player interacts with it. Or an NPC will say something differently when interaction(with action button) from behind them. The first scenario is my main one.
I can handle all the animation, I just need help with establishing the variable/condition that would trigger the different response.
Any help would be appreciated.
I am working on a condition I want to implement in my game where NPCs and other events react differently if the player were to interact with the NPC, or any event, from via North,South, West, and East. Is there a way to do this? I am assuming some scripting will be involved which I don't mind.
Example:
An object is being destroyed differently depending on the direction the player interacts with it. Or an NPC will say something differently when interaction(with action button) from behind them. The first scenario is my main one.
I can handle all the animation, I just need help with establishing the variable/condition that would trigger the different response.
Any help would be appreciated.