I followed part of prozaic's intro to attachments tutorial to attach a model to a unit. However, as soon as I finished I received an error stating the model failed to initialize.
I looked back at the actor events and noticed I didn't set the UnitBirth.'unitname'. fully. So i set it to UnitBirth.'unitname'.normal and the error went away. But now the model still does not appear. I am also using actor filters, so maybe I have those set wrong. I will play with them and see if it changes anything.
Otherwise, does anyone have any idea?
Edit: Ok, so I have the model attaching and showing up properly for the owner of the unit. It seems it's inheriting the cloak/bury from the behavior I have on the host unit. The filters for hiding the model from the owner seems to work but I still cannot see the enemy unit's attached model.
I think have everything unchecked for it. But I know it's the cloak because the host and attached model show up the way I want when I turn off the cloak flag on my host unit.
I followed part of prozaic's intro to attachments tutorial to attach a model to a unit. However, as soon as I finished I received an error stating the model failed to initialize.
I looked back at the actor events and noticed I didn't set the UnitBirth.'unitname'. fully. So i set it to UnitBirth.'unitname'.normal and the error went away. But now the model still does not appear. I am also using actor filters, so maybe I have those set wrong. I will play with them and see if it changes anything.
Otherwise, does anyone have any idea?
Edit: Ok, so I have the model attaching and showing up properly for the owner of the unit. It seems it's inheriting the cloak/bury from the behavior I have on the host unit. The filters for hiding the model from the owner seems to work but I still cannot see the enemy unit's attached model.
If it is an inheriting issue, check the Inherited Properties field for the actor and uncheck Visibility and Cloak Effect (and possibly Opacity).
I think have everything unchecked for it. But I know it's the cloak because the host and attached model show up the way I want when I turn off the cloak flag on my host unit.
i'm stumped.
I just tried it, and it seems to be caused by the Buried flag. For normal cloak, it works like this.
I suggest removing the SOpAttachOrigin.
So why you hiding your model with the buried flag?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I'm using the cloak and bury combo to mimic a hidden unit for everyone but the owner.
Edit: Also, I can see both models with only the Bury flag checked. With both bury and cloak, then I cannot see the flag.
Edit: And that worked Kueken, sweet :)