So, I searched several, several times hoping to find the answer to this, but I seem to be at a loss.
I have an actor attached to another actor via the data editor for use as a turret. I've managed to get it to work just fine for targeting other things with its turret and animating on attack thanks to a couple tutorials on here, but somehow I can't seem to figure out how to tell it to play its move animation when the parent actor is moving.
Can someone help me with this? I tried the Move event in Events+ but it doesn't seem to trigger when moving as the Attack, also tried UnitMovementUpdate with a variety of sub field options. I'm still very new to the Data Editor, so it's quite possible I've missed something obvious. I greatly appreciate any assistance offered.
Thank you for responding - is there any chance I might trouble you for a more detailed example?
Let's say I have UnitChassis for the main unit actor, UnitTurret for a turret on it, and UnitTurretModel for the turret's actor, which needs to be playing its move animation. What would I need to do to get this to work properly?
EDIT: Nevermind, thank you Kueken, I've figured it out.
For anyone who follows:
Set an AnimPlay message to trigger on the UnitChassis (UnitMovementWalk [Walk]) when it starts its walk cycle. Set the target field to UnitTurretModel.
So, I searched several, several times hoping to find the answer to this, but I seem to be at a loss.
I have an actor attached to another actor via the data editor for use as a turret. I've managed to get it to work just fine for targeting other things with its turret and animating on attack thanks to a couple tutorials on here, but somehow I can't seem to figure out how to tell it to play its move animation when the parent actor is moving.
Can someone help me with this? I tried the Move event in Events+ but it doesn't seem to trigger when moving as the Attack, also tried UnitMovementUpdate with a variety of sub field options. I'm still very new to the Data Editor, so it's quite possible I've missed something obvious. I greatly appreciate any assistance offered.
Try adding the event to the main unit actor and specify the id of your attached actor as a target for the AnimPlay message
Thank you for responding - is there any chance I might trouble you for a more detailed example?
Let's say I have UnitChassis for the main unit actor, UnitTurret for a turret on it, and UnitTurretModel for the turret's actor, which needs to be playing its move animation. What would I need to do to get this to work properly?
EDIT: Nevermind, thank you Kueken, I've figured it out.
For anyone who follows:
Set an AnimPlay message to trigger on the UnitChassis (UnitMovementWalk [Walk]) when it starts its walk cycle. Set the target field to UnitTurretModel.
You add an event to UnitChassis, looking like this:
Then you click on the AnimationPlay - part again. Select the topmost field called Target: and enter UnitTurretModel.
Add another similar event to stop the animation.