Hello! Today I wanted to showcase my NPC system that I’ve been working on and off for the past few years. I wouldn’t consider myself a dedicated scripter, but I am attempting to improve myself for the better.
Firstly, nodes are used to create a looped path that the NPC alternates between in numerical order. To make the NPC idle, the nodes simply have to be removed:
One of the main factors is a basic evasion system that uses the magnitude of other humanoid within the vicinity:
When looking at a humanoid, a focus animation is also used to enhance immersion. This can also be applied to other NPCs as well:
Lastly, there is a knockback feature that, when triggered, will make the NPC walk around the area of impact, and continue on the original designated path.
(Update): Added an event where the NPC will randomly take out their phone. Knocking them back will make them drop their device, and show a disgruntled expression:
I hope you enjoyed my showcase, and please feel free to reply or dm me on any inquiries.
Thank you.