one quick question =)

Status
Not open for further replies.
Level 2
Joined
Jan 4, 2010
Messages
10
Hey, thanks for viewing this post. As the title suggests I have 1 very quick questions about hte object editor

1. I'm working on a td but the units try to attack the tower even though they havnt been instructed to how can i stop this?

Thanks :)
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Disable the unit's attack. If you cast "Drunken Haze" (obviously a dummy version) on a unit, you can set it so that the unit is incapable of attacking. A duration of 0.00 ensures it lasts for ever.

You could also simply remove the ability 'Aatk' from the units which will disable them from attacking, permanently. The reason I suggest the "Drunken Haze" approach first is because the buff can be removed and reapplied, making it far more dynamic.

I'm curious too, though. You're saying the units from your TD are issued a "move" order and they stop along the way to attack towers? Please give context as to in which scenario you are having your problem, it can help diagnose the best solution.
 
Level 2
Joined
Jan 4, 2010
Messages
10
Thanks for the quick reply. I found it quite confusing myself, the towers are built on a rased cliff aswell but somehow the units do damge to them which confused me, the base unit is a footmen with a few changes like model/collision size/abilities/health etc

unfortunatly i cant just turn off attack as i need them to attack things in the way and if i turn on attack when they enter regions wouldn't that just make a few move off and try kill the towers still attacking them then get bugged becuase they wouldnt have anywhere to go as they missed the trigger and are out of all the Regions =/

thank sounded confusing im sorry =P

thanks

macuiare
 
Level 2
Joined
Jan 4, 2010
Messages
10
I found the problem! if you like use attack destructable as a moving order it will attack everything on the way so I made a region close to the thing it needs to attack but ive come across yet another problem. If you would be so kind to fix it Id appreciate it =) and thankyou for the help so far too =) anyways

heres my problem

Im using to move and attack the thing

If ((pbc (Horizontal) 0009 <gen> is dead) Equal to True) then do (Unit Group - Order (Units in Leftspawn <gen>) to Move To (Center of V1 <gen>)) else do (Unit Group - Order (Units in Gate <gen>) to Attack pbc (Horizontal) 0009 <gen>)

pbc is a destructable that is in the region gate

but once they kill it how can i get them to move again

I tried a trigger when pbc is destroyed to move all units in gate to move to v1 but they dont well 1 does what should i be doing?

exuse the noobyness

and thanks again :)
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
macuiare, you're making it more complex than it needs to be.

You said that you cannot disable unit attacks because they are needed to attack things that could possibly be in the way. Why not calculate the path that the unit will take and if there are obstructions then simply enable his attack until the obstructions have been removed.

Why are you using a destructable as a target for units?
 
Status
Not open for further replies.
Top