Hmm, I can't get it to work by tweaking just those values :-/ Mind taking a look at a test map?
The visual indicator for the selection resizes properly, but the area that you can click on still seems constrained to the model proper. The start point really highlights this, as only the "pin" portion of it seems selectable. (where's /that/ defined? as part of the model?)
Note: This is a repost of my thread over on the battle.net forums to get some extra exposure.
I'm trying to attach additional models to a unit, and have them act as part of the unit (mostly, I want to be able to select the unit by clicking on an additional model). Secondly, I'm looking for a way to do this entirely in the data editor so the extra models show up in the terrain editor, and not just in game.
Here's how I'm currently attaching the additional model:
The model is defined as an actor of type Model (with a parent of CActorModel):
The Subject field of "Hosting - Host +" is set to "Selectable". "_Unit" also works. _I'm not sure what this is defining.
The Operations field of "Hosting - Host Site Operations +" is set to SOpAttachOrigin.
The unit's actor is defined in a regular manner, except I add the following event:
ActorCreation
Create NameOfExtraModel
Alternatively, you can also skip the event on the unit and have a UnitBirth.UnitName: Create event on the extra model.
This is all fine and dandy, and I've got the extra model scaled/tweaked to look nice when attached to the unit, but the problem is that I can't select the unit when clicking on the extra model. One last thing I also am trying to achieve: I've got this extra model attached in the same way to several units, and I'd like to be able to just reference it in the main unit actor rather than duplicating it for each unit.
@Amaroqwlf:
Doesn't seem to do it - the extra model still doesn't grab clicks on the unit :-/
I think you've got me going in the right direction, though. Terran building construction seems to do this, but I can't quite piece together the how.
Edit: mispost, but good excuse for a bump.
Hmm, I can't get it to work by tweaking just those values :-/ Mind taking a look at a test map?
The visual indicator for the selection resizes properly, but the area that you can click on still seems constrained to the model proper. The start point really highlights this, as only the "pin" portion of it seems selectable. (where's /that/ defined? as part of the model?)
Note: This is a repost of my thread over on the battle.net forums to get some extra exposure.
I'm trying to attach additional models to a unit, and have them act as part of the unit (mostly, I want to be able to select the unit by clicking on an additional model). Secondly, I'm looking for a way to do this entirely in the data editor so the extra models show up in the terrain editor, and not just in game.
Here's how I'm currently attaching the additional model:
The model is defined as an actor of type Model (with a parent of CActorModel):
The unit's actor is defined in a regular manner, except I add the following event:
Alternatively, you can also skip the event on the unit and have a UnitBirth.UnitName: Create event on the extra model.
This is all fine and dandy, and I've got the extra model scaled/tweaked to look nice when attached to the unit, but the problem is that I can't select the unit when clicking on the extra model. One last thing I also am trying to achieve: I've got this extra model attached in the same way to several units, and I'd like to be able to just reference it in the main unit actor rather than duplicating it for each unit.
Anyone have some pointers?