Page 1 of 1

Units not attacking

Posted: 10 Feb 2012, 22:30
by berryblizzard
My units will not attack each other. I believe that for some reason they are viewing each other as on the same team but I am not sure how. The player controlled character can injure the other character by hitting near the other character but they cannot actually aim at the other character. I will attach my code. When I start the game in the Spring lobby I do start the other character as a bot on a different team. Any tips would be very appreciated. I have attached my code for the unit definition and for the unit script.

Re: Units not attacking

Posted: 10 Feb 2012, 23:09
by FLOZi
Not the problem - but is your unit supposed to be mobile or a building? Currently it has tags for both (movementclass and yardmap)

Re: Units not attacking

Posted: 10 Feb 2012, 23:33
by knorke
try setting Category on the unit.
could also be that the targeted point (model center in upspring) is way underground or in the sky.
The player controlled character can injure the other character by hitting near the other character but they cannot actually aim at the other character.
fps mode is pretty meh, so that is "normal"

Re: Units not attacking

Posted: 10 Feb 2012, 23:49
by FLOZi
try setting Category on the unit.
Almost certainly the issue iirc.