• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[AI] Unit command problem...

Status
Not open for further replies.
Level 11
Joined
Jul 28, 2007
Messages
920
I have a hero with item, that has ability summon.
I summon a unit. Unit is changed to another owner. I am PL1, so its changed to PL7, and when unit enters region ( its arena, and all units and heroes are in arena ) they must move-attack to opposite side, BUT SOMETIMES, they come almost tho the end of opposite side and then go back to spawn point, and then go back attack.. WTF ? :D, they have 5000 acusting range and 500 sight range, heroes dont have attack it that has any influence... so any idea ?
 
Level 5
Joined
Oct 27, 2007
Messages
158
I have a hero with item, that has ability summon.
I summon a unit. Unit is changed to another owner. I am PL1, so its changed to PL7, and when unit enters region ( its arena, and all units and heroes are in arena ) they must move-attack to opposite side, BUT SOMETIMES, they come almost tho the end of opposite side and then go back to spawn point, and then go back attack.. WTF ? :D, they have 5000 acusting range and 500 sight range, heroes dont have attack it that has any influence... so any idea ?

A unit that is under AI control has a guard spot. In your example the spawn point of the unit becomes the guard spot. Unless you override the AI, it will favor the unit going back to its guard spot. You can override the AI control by using AI ignore guard position.
 
Level 5
Joined
Oct 27, 2007
Messages
158
NOT WORKING GOD DAMN IT, CAN someone help me ? :D units going back sometime....


Are you sure the computer player isn't neutral passive/hostile? If so then it won't work. If that isn't the case, then post the entire trigger for me to look at.
 
Level 11
Joined
Jul 28, 2007
Messages
920
Wanna map ? This is only bug in whole map... ccc
I have hero, i use item that summons unit, trigger is activated
he does this:
change ovner od summoned unit to player 7(I am PL1)
Order summoned unit to move attack to opposite side of field

I think when a enemy hero is sorounded my melee units cant attack him so probably they go back to spawn point, but why they dont go as close they can? And i think that range units go back to, i nitice this last time i played map, my hero was in corner sorounded, and his footman and rifleman went back and then again to attack... -.-'
in map init i put ignore guard poss of pl7
 
Level 5
Joined
Oct 27, 2007
Messages
158
Wanna map ? This is only bug in whole map... ccc
I have hero, i use item that summons unit, trigger is activated
he does this:
change ovner od summoned unit to player 7(I am PL1)
Order summoned unit to move attack to opposite side of field

I think when a enemy hero is sorounded my melee units cant attack him so probably they go back to spawn point, but why they dont go as close they can? And i think that range units go back to, i nitice this last time i played map, my hero was in corner sorounded, and his footman and rifleman went back and then again to attack... -.-'
in map init i put ignore guard poss of pl7

In map init? You need to use the AI ignore guard position on every summoned unit for Player 7. So the correct steps are.
  1. Have an event to catch the summoning of units.
  2. Check if your hero summons a unit.
  3. Change the owner of the summoned unit.
  4. AI ignore guard position of summoned unit.
  5. Order the summoned unit to attack move to the other side.
 
Level 11
Joined
Jul 28, 2007
Messages
920
Ok i will but there is option, ignore AI command for player, but i will do it for each summoned unit, i will try it.

edit: seems like when units kill al enemy units they go back to their spawn points... i ignored guard possitions... somtn missing ? they are not neutral btw, they are PL7

edit2: i set guard distance and return time in game constants, i think that there is problem, had that problem before in AoS map...

Only problem now is that units go back to their spawn point when they kill all enemy unit in arena, any way to fix that ?
 
Last edited:
Level 5
Joined
Oct 27, 2007
Messages
158
Ok i will but there is option, ignore AI command for player, but i will do it for each summoned unit, i will try it.

edit: seems like when units kill al enemy units they go back to their spawn points... i ignored guard possitions... somtn missing ? they are not neutral btw, they are PL7

edit2: i set guard distance and return time in game constants, i think that there is problem, had that problem before in AoS map...

Only problem now is that units go back to their spawn point when they kill all enemy unit in arena, any way to fix that ?


Ok, if you would then upload the map and I'll take a look at it.
 
Status
Not open for further replies.
Top