Hi Chris,
I have the 3d environment and direct movement setting.
I would like to make the NPC to follow the player only if it is near to the player, it will stop if the player is far away.
I try action NPC follow, it seems that min or max value can't achieve what I want to do.
So, should I attach two triggers to the NPC, one for enter, one for exit to trigger either stop or follow if the player within the NPC triggers.
Is it the correct way to achieve this? Thanks for advise.
Comments
These fields are used to ensure that the NPC remains within a set distance range from the character they're following - it won't cancel the follow command.
Attaching a pair of Triggers to the NPC would be one way to do it, but you could do it through scripting as well:
That would be attached to the NPC, and assigned a Cutscene that has them follow the Player in its Inspector.