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:
 
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)
 
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.
 
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
 
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.
 
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?
 
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: 211
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top