I've got a Psi-storm spell that shrinks based on the caster's stacks of a behavior. Is there a way for me to adjust the Scale of the spell's Actor - Model on the fly based on the caster's stacks?
If possible, I'd really prefer not to create a different Actor for every possible state of the behavior (e.g. "Storm 1 Stack", "Storm 2 Stacks") as the maximum stack count could change, and that also just feels terrible.
Edit: Also, I understand that actors are asynchronous with the rest of the game. I only need to change the model's size at its creation; I don't need it to update again once it's out there.
Some things data is better at, some things triggers are better, your approach of using both is the correct one. Only issue is are you using both to their full strengths?
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I've got a Psi-storm spell that shrinks based on the caster's stacks of a behavior. Is there a way for me to adjust the Scale of the spell's Actor - Model on the fly based on the caster's stacks?
If possible, I'd really prefer not to create a different Actor for every possible state of the behavior (e.g. "Storm 1 Stack", "Storm 2 Stacks") as the maximum stack count could change, and that also just feels terrible.
Edit: Also, I understand that actors are asynchronous with the rest of the game. I only need to change the model's size at its creation; I don't need it to update again once it's out there.
Using a validator for each level of behaviour count you could use actor events to modify the scale of the model on creation.
Sorry it use both data and trigger. Easier for me.
Important : Actor, Trigger, Behavior.
Some things data is better at, some things triggers are better, your approach of using both is the correct one. Only issue is are you using both to their full strengths?
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