[Data] [Tutorial] Creating Units, Weapons, and Adding Sound

Blackveiled

Formerly, Ban-Lord
This is a more informative version of my tutorial I posted before.


Getting Started
Before we get started with creating the unit, first you should check and make sure your data editor's settings are similar so you go through this guide with ease.


What You Will Learn
  • How to create a unit
  • How to create an actor
  • How to associate the actor with a unit
  • How to create shooting animations for your unit
  • How to add sound to your unit
  • How to create a weapon and effect for your unit


Information
This post will be updated later with a library of field values in the data editor for you to work with.

Creating The Unit
To begin the tutorial, you're going to need to open your Data Editor and open the Units data type. Next, click the data dropdown menu (or right click in the data list), and add a new object. The unit for this tutorial will be based off of a Marine.



Be sure your fields match the image above, if you wish to choose another unit change the field values setting to whichever unit you would like to base your new unit off of. Hit OK and your new unit will be created.

There is no model or sound information for your unit now, so that will be done in the next step.

Creating The Actor

Open the Actors data type, and now add a new object again.



Be sure your fields match the image above. Hit OK.

Now that you created the actor, you will need to link your actor to your newly created unit. As before, the unit in this tutorial was called UnitTest and it is based off of the Marine.



Change the field value for the unit name to your newly created unit, and scroll down to Art - Model, and adjust the model to the unit you chose. If you chose the Marine like I did, choose Marine and set it for Art - Model, Art - Model (Build), and Art - Model (Placement).

This is optional, but your unit does not have any sound. So scroll down to Sound - Group Sounds and Sound - Sounds and adjust your unit's sound to the unit you chose just like you did for the model. In this case, I set it to the marine.



Now to move on to creating new weapon for your unit!

Creating The Weapon

This part of the tutorial will teach you how to create a weapon and adjust the damage of your weapon. Go to the Weapons data type, add a new object.



Be sure your field values match the image above.

Next, go to the Effects data type, and add a new object. You can name them the same if you want, it doesnt really matter what any of the objects are named.



Be sure your field values match the image above.

Now go to your newly created effect and set the damage for your weapon at the Combat - Amount field value. You can choose any number you wish, and remember all units affiliated with this weapon will deal that much damage.



Now we're going to go back to our weapon, so go to the Weapons data type. Go to your weapon you created earlier, and adjust the Effect - Effect field value to your newly created effect. This will change the damage your unit deals. Afterward, change the UI - Damage Display Effect field value to your newly created effect also. This shows the damage your unit deals on the user interface in the game. You can use the image below as a reference.



Weapon Attack Animations
Your weapon does not have an attack animation, so if your unit fights with their weapon it wont show any shooting even though they are shooting.

Go to the Actors data type, and add a new object. I chose the Marine earlier so I will base the attack animation off of Marine Attack.



Be sure your field values match the image above.

Now we need to change the Attack Effect field value to the weapon we created earlier. My weapon was called WeaponTest, so the linked weapon will be WeaponTest. Afterward, your unit will have shooting animations and will actually look like they are firing their weapon and not moving their gun around. Use the image below as a reference.



The End
That is the end of the tutorial, if you have any questions feel free to ask. I am willing to update this post with more information and add more than just creating a unit. I will probably slowly turn this into an overall unit creation guide in time. Feel free to post feedback and ask questions. Thanks for reading.
 

Tyman2007

Ya Rly >.
It's a great tutorial!

But imo should be in the resources section so that it doesn't get overrun by topics requesting assistance.

It singles it out and causes more views / is more accessible.
 

Flare

Stops copies me!
Staff member
I haven't read through the tutorial itself, but one thing I noticed was the colour you use for field names and data types - it's difficult to read them when the colour is quite similar to the background it's on (although, I guess it works fine for people using the Unreal theme :p). I'd suggest either bolding it, or changing it to a colour that's more visible on both themes (if possible), or both.
 

Blackveiled

Formerly, Ban-Lord
It's a great tutorial!

But imo should be in the resources section so that it doesn't get overrun by topics requesting assistance.

It singles it out and causes more views / is more accessible.
Okay. If a mod sees it, they can move it if they wish.


I haven't read through the tutorial itself, but one thing I noticed was the colour you use for field names and data types - it's difficult to read them when the colour is quite similar to the background it's on (although, I guess it works fine for people using the Unreal theme :p). I'd suggest either bolding it, or changing it to a colour that's more visible on both themes (if possible), or both.
Okay. Adjusted to a new color and bolded. Kinda hard to find a color that looks nice on both a dark and light background. But most people will probably be set to the StarCraft 2 theme when they enter this forum.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    I have a GIF though
  • tom_mai78101 tom_mai78101:
    In the GIF, I've configured it so the lower the "Main Value" is, the better. I had to compress it pretty far down though.
  • tom_mai78101 tom_mai78101:
    And this is the thread with the video that shows the wall clip. https://tasvideos.org/Forum/Topics/23453
    +2
  • tom_mai78101 tom_mai78101:
    Hmm, about the Headline News, I noticed threads are being moved into the subforum (Health News, Environmental News, etc.). When that happens, the TH Forum Home page loses the articles, and instead would show old articles posted 1 or 2 weeks ago.
  • tom_mai78101 tom_mai78101:
    What do we do with the Home page?
  • Ghan Ghan:
    I added those forums to the filter for that widget.
  • tom_mai78101 tom_mai78101:
    Oh nice. They're back. Thanks.
  • tom_mai78101 tom_mai78101:
    Now I think it makes more sense for me to put news in their own subforums, without worry.
  • The Helper The Helper:
    Awesome Ghan thanks! I was purposely not moving the first 15 news articles in Headline news to the different subforums but I guess I don't have to do that now?
  • tom_mai78101 tom_mai78101:
    Question: Is there a way to remove thread redirects? It creates a copy of the moved thread and takes up space, and I am leaning towards wanting to remove them in the Headline News. But if they have an expiration date, I guess I'm fine with it.
  • The Helper The Helper:
    If you move a thread please leave a permanent redirect. You can delete any redirects after 6 months. The redirects are left to help Search Engines find the moved content.
  • tom_mai78101 tom_mai78101:
    What if you move the permanent redirect, not the thread?
  • The Helper The Helper:
    I think that works but I have not messed with it. You can delete redirects though if you have to that will not delete the original thread
  • The Helper The Helper:
    if a redirect ends up in the same forum as the post it goes to though I think the redirect drops or fails or something but they are not bugged out and when you are working on an indirect the original post is safe.
  • The Helper The Helper:
    Happy Early Friday :)
    +1
  • V-SNES V-SNES:
    Happy Friday :)
  • tom_mai78101 tom_mai78101:
    Fun Friday for me
  • tom_mai78101 tom_mai78101:
    Happy Fun Friday to all.
    +2
  • The Helper The Helper:
    Happy Sunday everyone!!!
  • V-SNES V-SNES:
    Happy Sunday!!!
    +1
  • jonas jonas:
    Happy monday :p
  • jonas jonas:
    Everyone hates mondays?
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • jonas jonas:
    Happy belated tuesday

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top