Here is my problem : when a 'marine' is created, it brings a region x that kill every unit around him (except a certain kind of building, called road). I would do that if a unit x is over the road, it will be not killed BUT if that unit x is larger than the road (in radius) and touches the region x, it will be killed too.
To simplify, I just want to make 'holes' in the region x at the position of road buildings in the trigger editor. I tried to add negatives regions in region x, but it actually doesn't works (the positive region dominate the negatives). Plus, the 'holes' must be at differents places every time the 'marine' is created to another place (because the road can be to another place too, so i can't make negative region via the terrain editor).And finally, i can't do any kind of buff or aura, because i want that if the unit x is larger than the 'hole', it will be killed too.
Conditions -> Function: Distance Between Points, using the positions of the road and the unit as the points. I think this goes by the unit's radius rather than the center, so it should accomplish what you seek.
Finally I got it! It's a simple workaround, if the building have the footprint behavior, it create 8 points with different offset and if one of the point is in the region around the marine, it kills the building. I understood that if I want to create holes in my region, it must be a region made by a variable and after I add a negative circle (the rectangle doesn't works?).
Anything else will not work, simply because it always refer to the unit center...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Here is my problem : when a 'marine' is created, it brings a region x that kill every unit around him (except a certain kind of building, called road). I would do that if a unit x is over the road, it will be not killed BUT if that unit x is larger than the road (in radius) and touches the region x, it will be killed too.
To simplify, I just want to make 'holes' in the region x at the position of road buildings in the trigger editor. I tried to add negatives regions in region x, but it actually doesn't works (the positive region dominate the negatives). Plus, the 'holes' must be at differents places every time the 'marine' is created to another place (because the road can be to another place too, so i can't make negative region via the terrain editor).And finally, i can't do any kind of buff or aura, because i want that if the unit x is larger than the 'hole', it will be killed too.
Anybody got an idea?
@tatatatate: Go
had a condition if unit is near/in the holes of the region don't fire, simple.
@gamfvr: Go
I can't find that condition about distance from the hole and the other problem is that if the unit is larger in size than the hole, it must be killed.
Conditions -> Function: Distance Between Points, using the positions of the road and the unit as the points. I think this goes by the unit's radius rather than the center, so it should accomplish what you seek.
Finally I got it! It's a simple workaround, if the building have the footprint behavior, it create 8 points with different offset and if one of the point is in the region around the marine, it kills the building. I understood that if I want to create holes in my region, it must be a region made by a variable and after I add a negative circle (the rectangle doesn't works?).
Anything else will not work, simply because it always refer to the unit center...