you should try using catalog field value set, and change that unit's type radius for given player. Not sure if you'd be able to change ir for a single unit.
I'm afraid I need to change specific unit's radius, not the whole type. But seems like I can make this little adjustment in a short period of time, and then set it back to normal, and other units of this type won't feel anything.
Are you talking there about click unit radius? I don't think my issue can be solved by actor manipulating, because the collide radius isn't actor's property.
Lemme explain my specific aim I want to reach.
My infantry unit has the ability to create a little bunker and enter it. When I use this ability, unit places the bunker - not at the point he stays, but a little aside, because of radius. I want to set infantry radius to zero for a little period of time between the moment I oder unit to place the bunker and the moment it places it. So the bunker will appear at unit's point.
Well, the problem is solved, I just change the type's radius for 0.2 second, when single unit needs it, and then I change it back, and other units of the type have no time to feel the change. So it seems like I change single units's radius :)
Thanks, guys.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a trigger, which supposed to change unit's radius when he uses an ability,
I've tried both:
None of them works. Why?
The one which called CUnit_Radius as raw data. The radius which doesn't allow units to be at one point of map.
I think we adress it with c_unitPropRadius constant in set value function, doesn't we?
Trigger doesn't allow to change radius, it can only change properties like life, energy, experience etc. It uses funcion
with some constats, for example:
c_unitPropLife constant adresses life of unit
So I just tried to use another constant, to adress unit's radius, and it doesn't work by unknown reason.
Concerning behaviors, I haven't found any radius adjustments in behavior's modify field.
you should try using catalog field value set, and change that unit's type radius for given player. Not sure if you'd be able to change ir for a single unit.
@uiasdnmb: Go
I'm afraid I need to change specific unit's radius, not the whole type. But seems like I can make this little adjustment in a short period of time, and then set it back to normal, and other units of this type won't feel anything.
@AluCardvanHellsing: Go
Are you talking there about click unit radius? I don't think my issue can be solved by actor manipulating, because the collide radius isn't actor's property.
Lemme explain my specific aim I want to reach.
My infantry unit has the ability to create a little bunker and enter it. When I use this ability, unit places the bunker - not at the point he stays, but a little aside, because of radius. I want to set infantry radius to zero for a little period of time between the moment I oder unit to place the bunker and the moment it places it. So the bunker will appear at unit's point.
Well, the problem is solved, I just change the type's radius for 0.2 second, when single unit needs it, and then I change it back, and other units of the type have no time to feel the change. So it seems like I change single units's radius :)
Thanks, guys.