Enemies in this example are spread throughout the game. They will detect players moving into a radius and then chase that player until they can attack them or the player moves too far away. Most of an enemy's behavior can be customized by adjusting properties in the scripts on them.
An enemy can be a simple voxel object or a more complex animated NPC. We have examples of both in the game. The bat on the first island is a voxel object that plays different animations depending on what it is doing, while the other enemies are NPC’s.
The scripts that you should look at when configuring an enemy are:
Combat - Enemy BehaviorCombat - HealthDrop Collectables When KilledSome other scripts you may find useful on enemies are:
Combat - Melee WeaponCombat - Ranged WeaponCombat - Health BarFlash When DamagedBlob ShadowVoxel Object Animation ControllerVoxel Object Animation