Original Post — Direct link

so im trying to create new enemies such as human bandits with guns (plan to up attack range and add gunshot sound effects) and a few zombies but im wondering a few things

1 how would i go about making them hold a weapon

2 how would i add the enemy as its own type that i could manually select in map editor

3 how would i set them to attack both zombies and players?

i have unity 6 just am new to it and want to get these ideas done mostly for singleplayer but would post for public use aswell once kinks are ironed out, just decided i wanted to try it with no experience so well see

im aware in curated maps theyre just animals but im trying to get something that works well enough, yes i got the partial idea from a post here

External link →

Unturned doesn't use Unity 6. You'll have to switch to a compatible Unity 2021.3 version to create mods for the latest version of the game.

If you're creating custom enemies as animals, understand that these are limited. You can only do things that animals can already do, with some additional tricks possible via modhooks. Most things are going to be workarounds – e.g., rather than shooting a gun, they may just have a really long-range melee attack.

(The same applies to custom enemies spawned as barricades/airdrops.)

As animals, that means they'd be spawned/placed in the level editor just like any other animal.

If you're looking to do something more—like adding bandits as a new enemy type rather than an animal—you'd need to create a Module that contains your own C# scripts.