Currently, if you want to ensure that character (NPC or Player) is not following anyone, you call the .unfollow() method. But this blows up if the character isn't currently following anyone.
Solution: Check to see if the character is currently following someone before attempting to perform standard unfollow procedures.
Currently, if you want to ensure that character (NPC or Player) is not following anyone, you call the .unfollow() method. But this blows up if the character isn't currently following anyone.
Solution: Check to see if the character is currently following someone before attempting to perform standard unfollow procedures.