Disable follow

DWZ

New Member
Reaction score
2
I want to disable it that when you right click on a unit your unit follows it... But I can't find out how. :/

I tried changing
Stats - Follow Acquire Range
Stats - Follow Range Slop

But that don work...

I also tried disabling it with triggers but that fully disables the move ability. :/

Does anyone know how? D:
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,732
Is your trigger like this? I'm asking, is this yours?

Trigger:
  • Stop
    • Events
      • Unit - Any Unit is issued an order to Move
    • Local Variables
    • Conditions
      • (Owner of (Triggering unit)) == (Owner of (Target unit for (Triggering order)))
    • Actions
      • Debug - Display "" as debug output using Type 1, and Do display it in the game window
      • Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Is your trigger like this? I'm asking, is this yours?

Trigger:
  • Stop
    • Events
      • Unit - Any Unit is issued an order to Move
    • Local Variables
    • Conditions
      • (Owner of (Triggering unit)) == (Owner of (Target unit for (Triggering order)))
    • Actions
      • Debug - Display "" as debug output using Type 1, and Do display it in the game window
      • Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)

That would only work if the following unit was owned by the same player as the followed unit.

I was thinking of some similar but with the smart command and if the followed unit is not an enemy to the following unit, order the following unit to stop.
 

Rusty

New Member
Reaction score
5
Trigger:
  • Events
    • Unit - Any Unit is issued an order to Move
    • Local Variables
    • Conditions
      • (Target type for (Triggering order)) == Unit
    • Actions
      • Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)



otherwise you could remove "allied" from the allowed targets for the move ability

EDIT:
you could also replace the order to stop with

Trigger:
  • Unit - Order (Triggering unit) to ( Move targeting (Position of (Target unit for (Triggering order)))) (Replace Existing Orders)


if you want the unit to move the location of the unit it targeted instead of stopping
 

Arkless

New Member
Reaction score
31
Use the data editor.

Create an ability with the "smart" flag wich targets units and orders the unit to move to the position of the unit.

==> Right-clicking will trigger the smart command, wich makes the unit now move the the position of the target. This would still allow you to follow another unit if you click on the "move" button, this can be disabled by simply removing it.
 

DWZ

New Member
Reaction score
2
Trigger:
  • Events
    • Unit - Any Unit is issued an order to Move
    • Local Variables
    • Conditions
      • (Target type for (Triggering order)) == Unit
    • Actions
      • Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)



otherwise you could remove "allied" from the allowed targets for the move ability

EDIT:
you could also replace the order to stop with

Trigger:
  • Unit - Order (Triggering unit) to ( Move targeting (Position of (Target unit for (Triggering order)))) (Replace Existing Orders)


if you want the unit to move the location of the unit it targeted instead of stopping


That seems to be making my unit automatically move to a random unit, even when I click on the map and not a unit.
Also, I ca'nt remove allies from Move ability, because it has no targets. :/
Is your trigger like this? I'm asking, is this yours?

Trigger:
  • Stop
    • Events
      • Unit - Any Unit is issued an order to Move
    • Local Variables
    • Conditions
      • (Owner of (Triggering unit)) == (Owner of (Target unit for (Triggering order)))
    • Actions
      • Debug - Display "" as debug output using Type 1, and Do display it in the game window
      • Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
That was what I tried.... It didn't work.
That would only work if the following unit was owned by the same player as the followed unit.

I was thinking of some similar but with the smart command and if the followed unit is not an enemy to the following unit, order the following unit to stop.
I don't really understand the smart command thingy. D:
Use the data editor.

Create an ability with the "smart" flag wich targets units and orders the unit to move to the position of the unit.

==> Right-clicking will trigger the smart command, wich makes the unit now move the the position of the target. This would still allow you to follow another unit if you click on the "move" button, this can be disabled by simply removing it.

Could you explain a little more, please?
 

Arkless

New Member
Reaction score
31
Could you explain a little more, please?

Just create an ability with the smart flag set. If the target is valid, it will trigger on right-clicking (right click = smart command). If you dont add any effects to the ability, it would just prevent right clicking on units.

If you want that unit to move to the position of the clicked unit and stay there afterwards, you have to add an effect to the ability wich issues a move order to the position of the target unit.

I'm like 99.9% sure that works (haven't tested it, but all the parts by themselves do work [+ I already used em]). If you want me to create an example, wait till sunday (I should have some time on sunday)...

.. or maybe I will just play around with it now.

edit:
The scv got the ability I described. I replaced the move order on the command card with the ability as well. Queueing a smart (right click) order makes your unit follow the target some as well, to prevent that you could remove all flags I set in the effect "no follow". To make it even funnier you could check the queue flag (after remove the other one).
 

Attachments

  • no follow.rar
    7.8 KB · Views: 210
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top