I'm using a trigger to attach a model to a unit. there is no actor involved. the model is the firebat flames. The flames are angled slightly up, but I want them to angle down a little bit. is there a way I can fix this?
Your are going to have to play with the numbers. But do note, the numbers range from -1 to 1. So you will be using decimals to get your rotation right.
From what im guessing you want to focus on Z, that should set your angle. However you will have to play around with X and Y but I would start with Z.
Your are going to have to play with the numbers. But do note, the numbers range from -1 to 1. So you will be using decimals to get your rotation right. From what im guessing you want to focus on Z, that should set your angle. However you will have to play around with X and Y but I would start with Z.
That's way to complicated. I ended up just using an actor to create the model and using SOP actor to set the rotation.
I was having trouble getting the actor to work the way I wanted. It wasn't getting triggered properly. It was easier to use triggers to create the model.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm using a trigger to attach a model to a unit. there is no actor involved. the model is the firebat flames. The flames are angled slightly up, but I want them to angle down a little bit. is there a way I can fix this?
-Garrett
oops, this should be in the triggers section.
@andgarrett: Go
Your going to have to use the AttachSetRotaion trigger...
What point did you attach it to? (my exapmple uses turretZ, please set it to whatever your attachment point is.)
Now attachsetrotaion is bugged and only allows you to put in X, so you have to use ConvertToString(multiple) to create it. For example
ActorSend((MainActorofUnit(hero)), (StringToText((CombineStringsMult("AttachSetRotation {TurretZ 0} ", (FixedToString(xOfPolarPoint, 6)), ",", (FixedToString(yOfPolarPoint, 6)), ",0.000000")))))
Your are going to have to play with the numbers. But do note, the numbers range from -1 to 1. So you will be using decimals to get your rotation right. From what im guessing you want to focus on Z, that should set your angle. However you will have to play around with X and Y but I would start with Z.
That's way to complicated. I ended up just using an actor to create the model and using SOP actor to set the rotation.
Then why not use an actor?
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 was having trouble getting the actor to work the way I wanted. It wasn't getting triggered properly. It was easier to use triggers to create the model.