Small Project, tutorials/help needed

I started making a small project to practice scripting and using unity. The project is going to be “Skyrim-like”, I’m going to make a very small scene with few buildings, few NPC’s, AI and combat system. I want to make the project using Javascript.

What I’m looking for is tutorials so I can get the project working. I used many hours trying to find character controller tutorial using javascript, with no luck. Any help would be appreciated.

What have I done so far:

  • Melee, there’s a sword with animation. You can swing it, it sends raycast, if the enemy (cylinder, doesn’t move or anything) is in range, it will lose health, once health reaches 0, the “enemy” disappears.

  • 1st to 3rd person camera switch: very simple, needs some tweaking.

What I need:

  • Character controller, which works with both 1st and 3rd person cameras. Should be similar to skyrim, when in third person view, when you press a, character walks sideways, not like in the included character controller. Controller should use rigidbody so player can bump into items and knock them over.

  • NPC’s, with animations and AI, wanders around, friendly to player until attacked. Has to be animated. When killed turn into ragdoll

Optional:

  • Better melee system, impact effect, hit human and there should be blood particles

I have a friend who’s going to make the models, so I don’t have to worry about them. I can post images/videos about the project progression if anyone is interested.

Questions you’ve asked can be easily searched. Unity has an updated character controller with rigidbody. You’re making a small project after all. You can find it in Asset Store called “Sample Assets”

If you want wandering NPCs, have a look at NavMesh. It basically generates areas your AI can go to. You can even set a target where to go to including player’s location or some point of your scene.

As for blood particles, it’s fairly simple! Create a blood particle and make it “one shot”. Create particles for enemies and your NPCs. When player attacks enemy/npc make your particle emit once. This will give a cool blood effect.

Once again if you’re confused you can search the internet.