I have a unit without an attack or ability. Instead he has a behavior which periodically searches for nearby allies, and applies a buff to them. When I issue an attack command for a group of units, I would like him to stay near the group while they fight enemies. Instead he likes to move on and walk past enemies while the others fight. So I'd like it to be similar to how medics will stay with a group of units even when they aren't healing someone.
I've tried checking the unit flag AI tag for support units. Have Also tried giving him scan move underneath the attack command in the command card like the medic and medivac.
as far as i observe the medivac only stays with the group if there are wounded units (because it would like to heal them). just give your group_stay_unit an autocast ability on player units with same settings as heal just without the validators and maybe different range settings.
I have a unit without an attack or ability. Instead he has a behavior which periodically searches for nearby allies, and applies a buff to them. When I issue an attack command for a group of units, I would like him to stay near the group while they fight enemies. Instead he likes to move on and walk past enemies while the others fight. So I'd like it to be similar to how medics will stay with a group of units even when they aren't healing someone.
I've tried checking the unit flag AI tag for support units. Have Also tried giving him scan move underneath the attack command in the command card like the medic and medivac.
as far as i observe the medivac only stays with the group if there are wounded units (because it would like to heal them). just give your group_stay_unit an autocast ability on player units with same settings as heal just without the validators and maybe different range settings.