• 0

    posted a message on [Data] Creating Units, Weapons, and more
    Quote from insom89: Go

    Nice guide, i have question though, how does the unit know to use the weapon you create. From what I see here, only the attack actor and attack effect are linked to the weapon. Does it do it automatically?

    You change the weapon on the unit/hero itself. Should be something similar to Combat - Unit as said above in a previous reply. Be sure you link the attacks to an actor for animations. You shouldn't have to when you apply the weapon to a unit though.

    Posted in: Tutorials
  • 0

    posted a message on [Data] Creating Units, Weapons, and more

    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

    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.

    Posted in: Tutorials
  • 0

    posted a message on Creating Units (Simple/Non Confusing Method)

    I just wanted to write this up really quick because some people create units in an odd way on their tutorials. The steps should be much simpler.

    Before getting started:
    Make sure your data editor views are adjusted accordingly

    Create the unit
    To create a unit: Open your object editor, go to Units. Add a new object (right click, or Data menu).

    Choose whichever name you would like to name your unit, and assign it an ID. It doesn't matter what it's called, don't create the unit just yet. Next, go to Field values, and copy from whichever unit you would like to base it off of. I chose the marine, but any unit should work.


    Afterward, you will notice your unit appears on the editor, but it has no model. This is an easy fix and people tend to make it complicated. There is NO reason to create a new model for your one unit, they're already in the game so do not create any new models.

    Creating the Actor

    Open your Actors data-type now, and add a new object. Preferably name it the same as your custom unit, and set the field values to copy the field values of the unit you want to copy. Next, you're going to have to actually start editting the data of the actor now:


    You need to link the actor to your custom unit, so change the field data for the unit name to the created unit you made earlier. Now, the model field values are going to change to that instead of staying the same. This is why the model tends to break and people get confused.

    Change the model fields back to the model they were (model fields are named after the models data fields, but they usually have the same names as the object they are linked to, for example if you want your unit to look like a marine, you change the model field to a marine.)

    and you're done. If you want me to help you with anything else in the data editor, feel free to ask. Give feedback if you want to also.

    Posted in: Tutorials
  • To post a comment, please or register a new account.