This is probably as specific a thing I will ever ask for. When a unit turns while standing still if the animation exists for the unit's main model, it will play the "Stand Left" or "Stand Right" animation. For example, a marine's legs shuffle to the left and right when fidgeting or shooting a moving target.
I need an attached actor model to play an animation when the host unit turns while standing still. I'm aware that actor events sent to subsequent scope actors on a unit is used for animations on attached actors, but what event is used for "turning while standing still"?
I haven't found anything related to this in actor events, but if you will found somehow which animation indentifier is used for playing stand left / stand right anims you can put this in event animbracketstart or animplay and then send message to attached actor when this event triggers. Or you can try UnitFidget Event in actors mb this would work.
However, this can be done with tricky workaround but it will be somewhat complicated for you if youre not familiar with actors, you can actualy disable default unit rotations in Fidget+ field of your unit and make your own system with Site actor, SOp SmoothRotation and Sending messages "SetFacing", will be pretty silly work though...
I haven't found anything related to this in actor events, but if you will found somehow which animation indentifier is used for playing stand left / stand right anims you can put this in event animbracketstart or animplay and then send message to attached actor when this event triggers.
I've tried looking. It's a very specific thing if you don't know where to look. UnitMovementUpdate is the only event that's tied to movement, and terms are all but foreign to me.
Good news is I worked around it using behaviors. My map uses the mouse moved event and moves a marker unit to mouse location. The main unit then detects whether the marker is to the left or right, applies appropriate behaviors to itself, and turns toward the marker.
Of course most maps don't use mouse markers and mouse moved trigger events, so I don't know if this problem is really solved or not. It's unlikely many developers will run into this again.
Gents.
This is probably as specific a thing I will ever ask for. When a unit turns while standing still if the animation exists for the unit's main model, it will play the "Stand Left" or "Stand Right" animation. For example, a marine's legs shuffle to the left and right when fidgeting or shooting a moving target.
I need an attached actor model to play an animation when the host unit turns while standing still. I'm aware that actor events sent to subsequent scope actors on a unit is used for animations on attached actors, but what event is used for "turning while standing still"?
A very specific thing. Thanks in advance.
I haven't found anything related to this in actor events, but if you will found somehow which animation indentifier is used for playing stand left / stand right anims you can put this in event animbracketstart or animplay and then send message to attached actor when this event triggers. Or you can try UnitFidget Event in actors mb this would work.
However, this can be done with tricky workaround but it will be somewhat complicated for you if youre not familiar with actors, you can actualy disable default unit rotations in Fidget+ field of your unit and make your own system with Site actor, SOp SmoothRotation and Sending messages "SetFacing", will be pretty silly work though...
I've tried looking. It's a very specific thing if you don't know where to look. UnitMovementUpdate is the only event that's tied to movement, and terms are all but foreign to me.
Good news is I worked around it using behaviors. My map uses the mouse moved event and moves a marker unit to mouse location. The main unit then detects whether the marker is to the left or right, applies appropriate behaviors to itself, and turns toward the marker.
Of course most maps don't use mouse markers and mouse moved trigger events, so I don't know if this problem is really solved or not. It's unlikely many developers will run into this again.
Else use the rotation sensor system I have under my data assets or the MKII used for my walker.
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