Bit of a noob question here, I hope this is the correct place to post it.
I don't have trouble changing unit Scale, but now I face a problem of changing the unit Radius along with it. As a result, in-game, my unit grows big but its radius remains small and it looks bad when attacking other units.
So, my problem is that I can not find any way to change unit Radius. I have seen it referenced in the triggers before, but when I select "Set unit property" it does not appear available.
EDIT: I have to specify, I need to find a way to change unit Radius THROUGH TRIGGERS, not in the Data. The unit scale/radius is supposed to change according to number of kills, you see.
It seems like it would be easy to do with triggers, but I can't see how. I can set other unit properties to be that of its Radius, but not the other way around (setting the Radius to anything).
Any help would really be appreciated, as this is sort of holding my big project back at the moment.
The answer is simple: you can't. You can only modify certain unit properties in real-time, due to whatever restrictions Blizzard created in the design of it's engine.
Maybe if you could overwrite the memory location of this unit's specific property, you could. But that'd only work in single player and is well beyond the scope of this post. :)
My advice would be to look for a workaround. I hear attaching actors to other actors can modify the radius. ;)
Can you clarify what you're trying to modify? The unit's radius for the purposes of collision, or the size of the selection circle around the unit? As far as the game is concerned the two are completely unrelated.
Can you clarify what you're trying to modify? The unit's radius for the purposes of collision, or the size of the selection circle around the unit? As far as the game is concerned the two are completely unrelated.
In Data, the radius of collision for a unit is simply called its Radius. That is what I am trying to change through triggers, a unit's collision radius. I believe this is also referred to simply as 'Radius' in Triggers, but it seems you can only set other property values to be that of the unit's Radius, ie. not modify the Radius itself.
Thanks MotiveMe for those tips, I will fiddle around with attaching actors.
Attaching actors won't do anything if you're trying to modify the collision radius as actors have no collision (except doodads and I'm pretty sure their collision info is baked into the map.)
Anyway the correct way to do what you're trying to do is to use a morph ability to actually morph into a different unit with the larger radius, as there's no way to modify that property in general. If you're sure that a player will only have one of the unit at a time, though, you could use the Catalog Get/Set functions to dynamically change the Radius property for ALL units of that type (per player) - I'm not 100% that will work as a lot of fields cannot be modified in this way.
Hello,
Bit of a noob question here, I hope this is the correct place to post it.
I don't have trouble changing unit Scale, but now I face a problem of changing the unit Radius along with it. As a result, in-game, my unit grows big but its radius remains small and it looks bad when attacking other units.
So, my problem is that I can not find any way to change unit Radius. I have seen it referenced in the triggers before, but when I select "Set unit property" it does not appear available.
EDIT: I have to specify, I need to find a way to change unit Radius THROUGH TRIGGERS, not in the Data. The unit scale/radius is supposed to change according to number of kills, you see.
Any help appreciated...!
so are you trying to change the scale or the radius or both?
@NuclearNuke: Go As I said, I need help to change a unit's Radius through triggers.
Can't anyone help out with this?
It seems like it would be easy to do with triggers, but I can't see how. I can set other unit properties to be that of its Radius, but not the other way around (setting the Radius to anything).
Any help would really be appreciated, as this is sort of holding my big project back at the moment.
@Dystisis: Go
The answer is simple: you can't. You can only modify certain unit properties in real-time, due to whatever restrictions Blizzard created in the design of it's engine.
Maybe if you could overwrite the memory location of this unit's specific property, you could. But that'd only work in single player and is well beyond the scope of this post. :)
My advice would be to look for a workaround. I hear attaching actors to other actors can modify the radius. ;)
Can you clarify what you're trying to modify? The unit's radius for the purposes of collision, or the size of the selection circle around the unit? As far as the game is concerned the two are completely unrelated.
Moved to Map Development forum
In Data, the radius of collision for a unit is simply called its Radius. That is what I am trying to change through triggers, a unit's collision radius. I believe this is also referred to simply as 'Radius' in Triggers, but it seems you can only set other property values to be that of the unit's Radius, ie. not modify the Radius itself.
Thanks MotiveMe for those tips, I will fiddle around with attaching actors.
Attaching actors won't do anything if you're trying to modify the collision radius as actors have no collision (except doodads and I'm pretty sure their collision info is baked into the map.)
Anyway the correct way to do what you're trying to do is to use a morph ability to actually morph into a different unit with the larger radius, as there's no way to modify that property in general. If you're sure that a player will only have one of the unit at a time, though, you could use the Catalog Get/Set functions to dynamically change the Radius property for ALL units of that type (per player) - I'm not 100% that will work as a lot of fields cannot be modified in this way.
@RileyStarcraft: Go
Or you could use Set Catalog field value which you select the unit then the field you want and set the data value so
My unit field = radius = my value for specific player