I'm using using them for many reasons, but I only know a few of them. Yet, only the veterans of the editor would know.
When I create an actor within the actor, I can change its scale, tint, etc from the very same actor that creates it, and for that I use the Target box, and type the ID name of the Actor that was created. If I want to modify the actor's portrait and send it events, I type ::PortraitGameSelf
This ::PortraitGameSelf is a code. I want those codes. What is the one for an attach model, or death actor, or build actor. How can I know those target codes that are known by heart or unknown?
I guess that what you want is how to reference actors through Reference Set actor message. There are many ways to reference an actor within an actor, through setting Actor target ID within the Actor, through using signals, through using RefSet Actor message and so on.
I will give you two examples for an attach model actor and they mean the same thing :-
Let's say I want to change the blue sphere model attachment of the Tempest to red, so let's start.
We determine two actors - the Tempest unit actor and the StormSphereAttachment model addition actor.
Example 1
In the Tempest Unit Actor Event, add in the following:-
Actor Creation
->Target:StormSphereAttachment
->Set Tint Color 255,0,0
Example 2
In the StormSphereAttachment Actor Event, add in the following:-
Actor Creation
->RefSet ::actor.Tempest ::Self
RefSet
->RefEquals ::actor.Tempest ::Self
->Set Tint Color 255,0,0
So, both examples ended in the blue sphere model of the Tempest turning red.
For more references and guidance, do look at the following guide :-
Using the ::Last Created reference in the target for an actor event action directly after creating it you could force it to use a reference dump actor event action to find most of the information.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I'm using using them for many reasons, but I only know a few of them. Yet, only the veterans of the editor would know.
When I create an actor within the actor, I can change its scale, tint, etc from the very same actor that creates it, and for that I use the Target box, and type the ID name of the Actor that was created. If I want to modify the actor's portrait and send it events, I type ::PortraitGameSelf
This ::PortraitGameSelf is a code. I want those codes. What is the one for an attach model, or death actor, or build actor. How can I know those target codes that are known by heart or unknown?
Hi, Wonder_Rem,
I guess that what you want is how to reference actors through Reference Set actor message. There are many ways to reference an actor within an actor, through setting Actor target ID within the Actor, through using signals, through using RefSet Actor message and so on.
I will give you two examples for an attach model actor and they mean the same thing :-
Let's say I want to change the blue sphere model attachment of the Tempest to red, so let's start.
We determine two actors - the Tempest unit actor and the StormSphereAttachment model addition actor.
Example 1
In the Tempest Unit Actor Event, add in the following:-
Actor Creation
->Target:StormSphereAttachment
->Set Tint Color 255,0,0
Example 2
In the StormSphereAttachment Actor Event, add in the following:-
Actor Creation
->RefSet ::actor.Tempest ::Self
RefSet
->RefEquals ::actor.Tempest ::Self
->Set Tint Color 255,0,0
So, both examples ended in the blue sphere model of the Tempest turning red.
For more references and guidance, do look at the following guide :-
https://s2editor-guides.readthedocs.io/Classic_Tutorials/04_Misc/actor-cheats/
Thanks.
In reply to willjay84:
Yes exactly your link, this is was I was looking for, known reference codes. Thank you!
Using the ::Last Created reference in the target for an actor event action directly after creating it you could force it to use a reference dump actor event action to find most of the information.
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