Selector distance from game object
Posted: Thu Jul 22, 2021 9:29 am
Hi again. I have been following the quick start tutorial and have a bit of an issue modifying it so that the conversation is triggered only when the player is within certain range from the npc. What I have now is
1 player with selector script attached. It also has the "distance from" set to "game object". Also I set the "actor transform" to the player's one.
1 NPC with Dialogue system trigger and Usable scripts.
I assumed that by checking the "distance from" to "game object" the conversation will trigger only when the player is within range, but what I get is the same functionality as before. If the camera is within the specified range then the conversation triggers.
I know I can put a proximity selector, but then I would have to be adjusting trigger colliders of each NPC.
1 player with selector script attached. It also has the "distance from" set to "game object". Also I set the "actor transform" to the player's one.
1 NPC with Dialogue system trigger and Usable scripts.
I assumed that by checking the "distance from" to "game object" the conversation will trigger only when the player is within range, but what I get is the same functionality as before. If the camera is within the specified range then the conversation triggers.
I know I can put a proximity selector, but then I would have to be adjusting trigger colliders of each NPC.