Units not attacking
Moderator: Moderators
-
- Posts: 8
- Joined: 10 Feb 2012, 22:22
Units not attacking
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.
- Attachments
-
- samuel.lua
- The unit definition/weapon definition file
- (2.71 KiB) Downloaded 122 times
-
- mainChar.lua
- The unit script
- (4.33 KiB) Downloaded 15 times
Re: Units not attacking
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
try setting Category on the unit.
could also be that the targeted point (model center in upspring) is way underground or in the sky.
could also be that the targeted point (model center in upspring) is way underground or in the sky.
fps mode is pretty meh, so that is "normal"The player controlled character can injure the other character by hitting near the other character but they cannot actually aim at the other character.
Re: Units not attacking
Almost certainly the issue iirc.try setting Category on the unit.