Can you assign an actor to more than one unit type? I don't want to make an actor for every item unit I make :(. I change the unitName to assign the actor to a unit right now, but I was wondering if there was another way that let more than one.
Actually, you can.
The unittype is just a token that the events field refers to, and the events field is what actually controls when the actor is created. If you duplicate all the events that refer to unit-type and change the unit-type then the actor can be associated with both types. Of course, that's a little more complicated than changing the token.
I've been wondering how to do this since I am just making a clone of unit that has a different weapon and effect. Visually and audibly, they're the same unit.
I'd rather not duplicate the actors/models/sounds and stuff. What would be the minimal way of doing this?
Let's take a simple example. Suppose I want to use a Zergling. For my purposes, by custom zergling won't have baneling morph, won't have burrow, and won't get a speed upgrade.
If I look at the unit actor for Zergling, and open the Events field, I can see there are only 5 events that apply specifically to Zerglings and don't involve any of the abilities I previously mentioned (they are the top 5). Duplicate those 5 events, but change the unit type from Zergling to something else, and it will work.
If you need to add burrow, baneling morph, or the speedling morph to the new zergling, you can duplicate those fields too and make the appropriate changes. Since you will almost certainly be using a new burrow ability on your zergling clone (or else he becomes a normal zergling when he burrows) you have to change which ability it references. But same concept.
You might also have to create new validators for some of the events.
You can have the actors refer to the same models, sounds, etc.
You can shift/ctrl click all the actors at the same time, then ctrl click all the models/sounds/etc you need to match up, and then right click and "Modify Value" - you can set them all together simply from here.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Can you assign an actor to more than one unit type? I don't want to make an actor for every item unit I make :(. I change the unitName to assign the actor to a unit right now, but I was wondering if there was another way that let more than one.
@barakatx2: Go
Negatory.
Actually, you can. The unittype is just a token that the events field refers to, and the events field is what actually controls when the actor is created. If you duplicate all the events that refer to unit-type and change the unit-type then the actor can be associated with both types. Of course, that's a little more complicated than changing the token.
I've been wondering how to do this since I am just making a clone of unit that has a different weapon and effect. Visually and audibly, they're the same unit.
I'd rather not duplicate the actors/models/sounds and stuff. What would be the minimal way of doing this?
@tordecybombo: Go
Let's take a simple example. Suppose I want to use a Zergling. For my purposes, by custom zergling won't have baneling morph, won't have burrow, and won't get a speed upgrade. If I look at the unit actor for Zergling, and open the Events field, I can see there are only 5 events that apply specifically to Zerglings and don't involve any of the abilities I previously mentioned (they are the top 5). Duplicate those 5 events, but change the unit type from Zergling to something else, and it will work. If you need to add burrow, baneling morph, or the speedling morph to the new zergling, you can duplicate those fields too and make the appropriate changes. Since you will almost certainly be using a new burrow ability on your zergling clone (or else he becomes a normal zergling when he burrows) you have to change which ability it references. But same concept. You might also have to create new validators for some of the events.
You can have the actors refer to the same models, sounds, etc.
You can shift/ctrl click all the actors at the same time, then ctrl click all the models/sounds/etc you need to match up, and then right click and "Modify Value" - you can set them all together simply from here.