How can you make a life leech attack work only vs biological units. For example leeches life when attacking marines but does nothing when attacking thors and tanks?
I used a simple behaviour and changed the vital leeched from damage dealt. But there aren't any fields to play with?
I'm consdiering just using triggers or is there a simple way with data editor?
@Fullachain: Go Do you want a weapon that does that or a behavior, applied to any unit?
A weapon is very simple, just make a switch-type effect with a validator for the target unit's type, then use 2 different damage effects, one that leeches life and another that doesn't.
For a behavior I'd validate it, turning it on only when the unit is attacking and target is biological, but that's just an idea, you would have to give it some tests.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How can you make a life leech attack work only vs biological units. For example leeches life when attacking marines but does nothing when attacking thors and tanks?
I used a simple behaviour and changed the vital leeched from damage dealt. But there aren't any fields to play with?
I'm consdiering just using triggers or is there a simple way with data editor?
@Fullachain: Go Do you want a weapon that does that or a behavior, applied to any unit?
A weapon is very simple, just make a switch-type effect with a validator for the target unit's type, then use 2 different damage effects, one that leeches life and another that doesn't.
For a behavior I'd validate it, turning it on only when the unit is attacking and target is biological, but that's just an idea, you would have to give it some tests.