The problem I'm having is the scaling is not right when it triggers and sets the unit's model variation. Such as I have 3 different models, all at different scales, .25, .50, 1.00. When it triggers for the first time, it does it correctly and changes the .25 model to the .50 model. However, when it triggers again, it changes the model, but keeps the scale the same as .50 instead of 1.00.
Anyone have any ideas what might cause this? I mean I know I can just slap on another Action to say Set Unit Scale, but that's just putting a band-aid on a problem that shouldn't occur in the first place.
And yes, I believe so. It's Built-In/Unit/Properties/Set Unit Model Variation
whose actions are Actor - Send actor message (ModelSwap Model Variation) to main actor of unit Unit with the If Then Else clause for the Texture parameter.
It's pretty much just a test trigger to see if it is working, nothing special about it.
Only difference between this one which is changing a unit whose model scale is .5 to a model whose scale is 1.00 from the other trigger which is from .25 to .5 is that extra line, Set Unit Scale. But like I said, I shouldn't need to use that to fix the scale from .5 to 1.00 when the model I'm setting to is already at 1.00.
I'd recommend skipping model variations altogether, and just use different models. Less hassle, more direct control.
----
They are different models, they aren't using the variations, which is why it is set to 1. Such as if I were to just change "Apple Tree Model" to use Assets\Units\Terran\Marine\Marine.m3 instead the trigger will change the model to the marine, but scaled at .5 instead of 1.00
Again, the scaling from .25 to .5 trigger works fine. Problem is with the .5 to 1.00 model change.
Marine Screenshot Caption: Blue Marine on the left is when the extra line "Set Unit Scale" action is in placed to modify it to 200%, the Blue Marine in the middle is without that line, and the Green Marine is your default marine with no changes as a reference shot.
The problem I'm having is the scaling is not right when it triggers and sets the unit's model variation. Such as I have 3 different models, all at different scales, .25, .50, 1.00. When it triggers for the first time, it does it correctly and changes the .25 model to the .50 model. However, when it triggers again, it changes the model, but keeps the scale the same as .50 instead of 1.00.
Anyone have any ideas what might cause this? I mean I know I can just slap on another Action to say Set Unit Scale, but that's just putting a band-aid on a problem that shouldn't occur in the first place.
@odinMapster: Go
are you setting the scale at the actor or at the model level? I'm assuming you're using the trigger action (Send Actor Message to Unit > Modelswap)?
@PirateArcade | I make games | Ask me things on Discord
Scaling is set at model level.
And yes, I believe so. It's Built-In/Unit/Properties/Set Unit Model Variation
whose actions are Actor - Send actor message (ModelSwap Model Variation) to main actor of unit Unit with the If Then Else clause for the Texture parameter.
@odinMapster: Go
I'd recommend skipping model variations altogether, and just use different models. Less hassle, more direct control.
@PirateArcade | I make games | Ask me things on Discord
could you screen shot what your "action" looks like in gui and upload it for us to see what its doing?
It's pretty much just a test trigger to see if it is working, nothing special about it.
Only difference between this one which is changing a unit whose model scale is .5 to a model whose scale is 1.00 from the other trigger which is from .25 to .5 is that extra line, Set Unit Scale. But like I said, I shouldn't need to use that to fix the scale from .5 to 1.00 when the model I'm setting to is already at 1.00.
Quote from greythepirate:
@odinMapster: Go
I'd recommend skipping model variations altogether, and just use different models. Less hassle, more direct control.
----
They are different models, they aren't using the variations, which is why it is set to 1. Such as if I were to just change "Apple Tree Model" to use Assets\Units\Terran\Marine\Marine.m3 instead the trigger will change the model to the marine, but scaled at .5 instead of 1.00
Again, the scaling from .25 to .5 trigger works fine. Problem is with the .5 to 1.00 model change.
Marine Screenshot Caption: Blue Marine on the left is when the extra line "Set Unit Scale" action is in placed to modify it to 200%, the Blue Marine in the middle is without that line, and the Green Marine is your default marine with no changes as a reference shot.