I am making a Tug of War with objectives on the map. My units encounter creeps on the map. The creeps belong to the hostile player (player 15).
When the hostile player attacks my units, my units reply and attack too.
But when the hostile player can't attack my nearby units, I have an unexpected behavior: my units (uncommandable, as in a tug of war) just pass by as if there was no hostile creep. I would like my units to be offensive and attack them.
Example: I have an air unit (uncommandable) that goes above a creep, and that creep cannot attack air. Right now my air unit just passes above it. I'd like my air unit to attack it. Same problem if my unit is invulnerable.
I can't find an answer and I've spend a lot of time trying to figure out an answer but didn't succeed. Please help!
Note: the creeps must absolutely belong to the a player of type "hostile".
I've been thinking about changing the hostile player to an enemy computer, but tried to avoid it.
-> My problem is in the lobby: it seems even if you lock a computer's team (option in the game variants), people can still mess up in the lobby and change the computer's position and team. I don't want that to happen.
-> There is a difference between a "hostile" and a "neutral" player. At least, the hostile attacks you when it can. I wonder if I can make my player be more aggressive towards the "hostile players". Setting us as enemies using triggers doesn't solve the problem.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I am making a Tug of War with objectives on the map. My units encounter creeps on the map. The creeps belong to the hostile player (player 15).
When the hostile player attacks my units, my units reply and attack too.
But when the hostile player can't attack my nearby units, I have an unexpected behavior: my units (uncommandable, as in a tug of war) just pass by as if there was no hostile creep. I would like my units to be offensive and attack them.
Example: I have an air unit (uncommandable) that goes above a creep, and that creep cannot attack air. Right now my air unit just passes above it. I'd like my air unit to attack it. Same problem if my unit is invulnerable.
I can't find an answer and I've spend a lot of time trying to figure out an answer but didn't succeed. Please help!
Note: the creeps must absolutely belong to the a player of type "hostile".
Give it a dummy weapon to pull aggro?
Try making the units owned by a player. Neutral players are called "neutral" for a reason. Set the slot controller for the neutral player to computer.
Thanks for the suggestions!
@joey101d: Go
The creeps have weapons already: they attack you when they can. When your unit is invulnerable for instance, creeps won't attack it.
@ImperialGood: Go
I've been thinking about changing the hostile player to an enemy computer, but tried to avoid it.
-> My problem is in the lobby: it seems even if you lock a computer's team (option in the game variants), people can still mess up in the lobby and change the computer's position and team. I don't want that to happen.
-> There is a difference between a "hostile" and a "neutral" player. At least, the hostile attacks you when it can. I wonder if I can make my player be more aggressive towards the "hostile players". Setting us as enemies using triggers doesn't solve the problem.