Hi I am a n00bz in mapmaking. Starting making simple TD. but when path is blocked the mobs got confused. how to make mob attack and punish the player? I tried using "Any unit - command (Attack) to Waypoint" action trigger but it does not want to attack player's tower and just sitting there.
Attack if blocked
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
Conditions
((Position of (Triggering unit)) is passable) == False
Actions
Unit - Order all units in (Unit group((Triggering unit))) to ( Attack targeting Point 001) (Replace Existing Orders)
and keep your original move orders
make sure the condition is set to that and they will only attack if no longer passable
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
Conditions
((Position of (Triggering unit)) is passable) == False
Actions
Unit - Order all units in (Unit group((Triggering unit))) to ( Attack targeting Point 001) (Replace Existing Orders)
and keep your original move orders
make sure the condition is set to that and they will only attack if no longer passable
I tried exactly what you mentioned but it does not work. The mobs did not attack the tower along the way, instead trying to find path by running around indefinitely. I tried Attack, Attack invulnereble, Attack relative, same thing... the mobs didn't want to attack (im sure they have weapon)
Try adding the mob to a group then instead of ordering triggering unit unit that specific mob / group
Create variable make the variable a unit group and after your create order and the action add last created unit to unit group and select that variable.
Once you have done that set the: order all units in unit group to the group you made.
That should work
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi I am a n00bz in mapmaking. Starting making simple TD. but when path is blocked the mobs got confused. how to make mob attack and punish the player? I tried using "Any unit - command (Attack) to Waypoint" action trigger but it does not want to attack player's tower and just sitting there.
Thanks in advance
But I want the mob to punish the players that block the path. also if you set collision to be nothing then mazing cannot be implemented...
I just want the mob to move to waypoint. when path is blocked by player it will destroy the tower blocking the path.
@DrakePageau: Go
I tried exactly what you mentioned but it does not work. The mobs did not attack the tower along the way, instead trying to find path by running around indefinitely. I tried Attack, Attack invulnereble, Attack relative, same thing... the mobs didn't want to attack (im sure they have weapon)