Okay so I have it so when I create my main unit its shoulder and weapon actors are created by the actor of the main unit.
UnitBirth.AvatarCreateWeaponRight
Now I know in order to send a message to that WeaponRight I need to create a reference (in the Content part of its creation right?) to it when its created. Then I need to use send message to (reference) of the main actor of the unit. My question is how do I set this reference during the creation of the WeaponRight actor? Anything I put in the Content section just resets the entire thing to Damage. Am I missing something?
You can just use the Target field of your desired actor message (the topmost field usually) and enter the actor id you want to send the message to. No desparate need to a reference here.
Will that work for an actor created by another actor on its units creation?
Like When I make my Avatar unit (and there will up to 10 players with one) when its actor is created it also creates a few Actors attached to it for weapon and shoulder models. So I need send a ModelSwap command to the WeaponRight actor attached to the Actor of the Avatar unit.
I guess I'm not understanding what you're saying. :x
Okay so I have it so when I create my main unit its shoulder and weapon actors are created by the actor of the main unit.
Now I know in order to send a message to that WeaponRight I need to create a reference (in the Content part of its creation right?) to it when its created. Then I need to use send message to (reference) of the main actor of the unit. My question is how do I set this reference during the creation of the WeaponRight actor? Anything I put in the Content section just resets the entire thing to Damage. Am I missing something?
You can just use the Target field of your desired actor message (the topmost field usually) and enter the actor id you want to send the message to. No desparate need to a reference here.
@Kueken531: Go
Will that work for an actor created by another actor on its units creation?
Like When I make my Avatar unit (and there will up to 10 players with one) when its actor is created it also creates a few Actors attached to it for weapon and shoulder models. So I need send a ModelSwap command to the WeaponRight actor attached to the Actor of the Avatar unit.
I guess I'm not understanding what you're saying. :x
Edit:
OOOOH I got it now I do a
Yes, it will search for a matching actor within the actor scope; which includes attachments.
@Kueken531: Go
Yep, thank you it works perfect for weapon switching thanks. Now I just have to figure out why the polearm model keeps crashing sc2 ><.
Too many polygons? The memory of your comp is not big enough?
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