The only thing I could figure out on the fly, was how forcefields get crushed by massive units:
The target unit has an ability (Shatter), which automaticly targets massive units and plays an effect which kills the caster. Plus some autocast stuff... maybe target sorts.
If you gave all your light units that ability, it would have the effect you described. If this is how you did it, you could go through the flags of the ability, because it might be possible, they run towards the massive units attempting to cast the shatter ability. Or play with the prepare and approach phases, I am not too sure here.
The problem is not so much, that nobody knows how to make a crush system, but that people know how many ways of making are there.
Inspired by how blizz made sentry fields crushable (and what others suggested before), I can think of a few possible solutions:
- Ability on the side of the crushed unit
- Ability on the side of the crusher
- Weapon of the crusher
- Weapon of the crushable unit
- Behavior based system for either crusher or crushed witha search effect
- trigger-based on the event "unit enters/leaves range of unit"
The only thing I could figure out on the fly, was how forcefields get crushed by massive units:
The target unit has an ability (Shatter), which automaticly targets massive units and plays an effect which kills the caster. Plus some autocast stuff... maybe target sorts.
If you gave all your light units that ability, it would have the effect you described. If this is how you did it, you could go through the flags of the ability, because it might be possible, they run towards the massive units attempting to cast the shatter ability. Or play with the prepare and approach phases, I am not too sure here.
Sorry for the late reply, didn't see it earlier.