Dynamic NPC Movement - Add-on for Multiplayer ARPG Kit
Tired of static, lifeless NPCs? Dynamic NPC Movement is the essential, easy-to-use add-on for the Multiplayer ARPG Kit that allows you to bring your game world to life. Transform your quest-givers, guards, and ambient characters from static objects into dynamic, intelligent entities with just a few clicks.
Built from the ground up with a focus on performance and security, all movement logic is server-authoritative, providing a smooth and cheat-proof experience for your players.
Core Features
- Seamless Integration: Designed specifically as an add-on for the Multiplayer ARPG Kit. Just add the components to your existing NPC prefabs.
- Server-Authoritative Movement: All AI decisions and movement calculations are handled securely on the server, preventing speed hacks and ensuring perfect synchronization.
- Intelligent NavMesh Pathfinding: NPCs navigate your world intelligently, avoiding obstacles and finding the best path to their destination.
- Advanced Waypoint System:
Create complex patrol routes with an unlimited number of waypoints.
Set custom wait times for each point in the path.
Choose between Loop and Ping-Pong modes for varied patrol behaviors. - Dynamic Random Wandering:
Set a radius and let NPCs wander freely and realistically within a defined area.
Configure a wait time for how long they should pause before choosing a new destination. - Interactive & Player-Aware AI:
NPCs will automatically stop their patrol when a player enters their detection range.
They will smoothly turn to look at the nearest player.
Once all players leave, the NPC seamlessly resumes its patrol. - Fully Networked Animations:
Includes a simple but powerful animation controller to smoothly transition between Idle and Move animations.
The animation state is perfectly synchronized with the NPC's movement. - Modular and Clean Code: The system is built with clear, separated components, making it easy to understand, extend, or customize. Full C# source code is included.
How It Works
This asset provides a ServerWaypointMovement component that acts as the "brain" for your NPC. Simply add it to your NPC prefab, choose a movement mode (Waypoint or RandomInRadius), and configure the settings in the Inspector. The included WaypointMovementSynchronizer handles all the complex networking automatically, ensuring movement is smooth for all players.
Perfect For:
- Guards patrolling a castle wall.
- Merchants wandering around a marketplace.
- Ambient villagers making a town feel alive.
- Any character that needs more than just standing still!
Give your players a more immersive and believable world. Get Dynamic NPC Movement today!