I have an effect which currently upgrades HP for a unit (Zergling). I also want the effect to increase the scale of the unit (X/Y/Z) by 1 - at the moment I have come up with something resembling the following:
Variable 'ScaleValue' = 100
Trigger 'Spawn':
Event: timer (spawn) expires
Action: create 1 Zergling at Location
Action: set unit scale to Scalevalue Scalevalue Scalevalue
-
However this doesn't actually change the size of existing units when the upgrade is placed , and to be quite frank is messy and doesn't achieve the result I want.
Does anyone know how to have an upgrade or effect change any property of a particular Model?
The actor has an event which increases scale. Just do what grogian said. Take a look at the marine shield but replace the action with something like "increase scale" (im not sure what its called)
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Here's a version that works without having to modify the actor of every unit you want to grow directly (I put some visual FX in there also). It uses a custom actor and a custom behavior. I'm assuming you know how to create abilities that apply behaviors, because I was too lazy to go through all the steps to make that happen.
Here's a version that works without having to modify the actor of every unit you want to grow directly (I put some visual FX in there also). It uses a custom actor and a custom behavior. I'm assuming you know how to create abilities that apply behaviors, because I was too lazy to go through all the steps to make that happen.
In your map the Engorged behavior/buff is applied when the unit kills something and applies a model to the unit, but I can't see anywhere that the behavior directly modifies the scale of the model used to display the unit?
I am trying to create an upgrade that you research to increase hp and size, but I just can't find a way to increase the scale of a model with a behaviour in this fashion - definately the trigger you created can apply a behaviour - perhaps the behaviour could be a permanent small growth increase, and be able to stack?
We could then apply the behaviour to all units in the unit group and effectively grow them by a small amount with each stack of the behaviour.. Do behaviours stack?
OK, well, I can't for the life of me figure out how to achieve this with an effect, however, it is possible by making a trigger to run through a unit group and set scale to a variable value for each unit in that group.
Size Trigger
Events
Unit - (Unit 1 from base player 1) uses Upgrade HP at Generic6 - Complete stage (Ignore shared abilities)
Local Variables
Conditions
Actions
Variable - Set Scale Player 1 = (Scale Player 1 + 2.5)
Unit Group - Pick each unit in Units Player 1 and do (Actions)
Actions
Unit - Set (Picked unit) scale to (Scale Player 1%, Scale Player 1%, Scale Player 1%) of its original size
Hi,
I have an effect which currently upgrades HP for a unit (Zergling). I also want the effect to increase the scale of the unit (X/Y/Z) by 1 - at the moment I have come up with something resembling the following:
Variable 'ScaleValue' = 100 Trigger 'Spawn': Event: timer (spawn) expires Action: create 1 Zergling at Location Action: set unit scale to Scalevalue Scalevalue Scalevalue
-However this doesn't actually change the size of existing units when the upgrade is placed , and to be quite frank is messy and doesn't achieve the result I want.
Does anyone know how to have an upgrade or effect change any property of a particular Model?
@lordnk: Go
bump...anyone? I'm running out of hair :)
@lordnk: Go Looks like a good challenge, I'll look into it.
@lordnk: Go
Use "Events+" in the unit's actor. Take a look at the marine's shield for details (use scaling instead of animation play for the action).
The actor has an event which increases scale. Just do what grogian said. Take a look at the marine shield but replace the action with something like "increase scale" (im not sure what its called)
@ZyphreRZO: Go
Here's a version that works without having to modify the actor of every unit you want to grow directly (I put some visual FX in there also). It uses a custom actor and a custom behavior. I'm assuming you know how to create abilities that apply behaviors, because I was too lazy to go through all the steps to make that happen.
In your map the Engorged behavior/buff is applied when the unit kills something and applies a model to the unit, but I can't see anywhere that the behavior directly modifies the scale of the model used to display the unit?
I am trying to create an upgrade that you research to increase hp and size, but I just can't find a way to increase the scale of a model with a behaviour in this fashion - definately the trigger you created can apply a behaviour - perhaps the behaviour could be a permanent small growth increase, and be able to stack?
We could then apply the behaviour to all units in the unit group and effectively grow them by a small amount with each stack of the behaviour.. Do behaviours stack?
OK, well, I can't for the life of me figure out how to achieve this with an effect, however, it is possible by making a trigger to run through a unit group and set scale to a variable value for each unit in that group.
Size Trigger Events Unit - (Unit 1 from base player 1) uses Upgrade HP at Generic6 - Complete stage (Ignore shared abilities) Local Variables Conditions Actions Variable - Set Scale Player 1 = (Scale Player 1 + 2.5) Unit Group - Pick each unit in Units Player 1 and do (Actions) Actions Unit - Set (Picked unit) scale to (Scale Player 1%, Scale Player 1%, Scale Player 1%) of its original size
@ZyphreRZO: Go
Thank you ZyphreRZO it worked great for me :)