Get target point of right click with unit of 0 mspd selected

Moradiae

TH.net Regular
Reaction score
14
SOLVED

Is there any way to..
- detect if a player right clicks any point AND/OR
- get the target point of that right click​

Providing the player selects a unit WITH 0 movement speed?
Unit with 0 movement speed doesn't have the "move", "patrol", "stop", and "hold position" commands

So far I know these 3 doesn't work since there's no "move" "order"
Trigger:
  • Events
    • Unit - A unit Is issued an order targeting an object
    • Unit - A unit Is issued an order targeting a point
    • Unit - A unit Is issued an order with no target


SOLUTION
channel with no icon and unlimited (999999) range triggering "order targeting a point"
 

Moradiae

TH.net Regular
Reaction score
14
Now that's something I haven't think about, ingenious :)

will see what I can make of this at the moment,

the only problem is that I wanted to keep it a hero (unit) since there'll be leveling and such :(


edited ====

a unit can have the "Rally" ability, now I am looking at hiding the ability while still having it functional :q
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
a unit can have the "Rally" ability, now I am looking at hiding the ability while still having it functional :q
I have tried very hard, unsuccessfully. :(

Instead, give it an invisible spell based on Channel which has "smart" as its order string. Credit to DioD for that idea.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
I don't really understand this part, I think it is essential, right? Can anyone elaborate on this in a simpler way?
Sure...

Duplicate the ability named Channel. Make it a unit ability with 1 level. Remove all the "Art -" data. Change the cast range to 999999999 or whatever.

Change "Data - Base Order ID" to smart, "Data - Disables Other Abilities" to False, "Data - Options" to Universal Spell, "Data - Follow Through Time" to 0, and "Data - Target Type" to Point Target.

Give it to your unit.

Right click in-game.

I don't think I left out anything important...
 

Moradiae

TH.net Regular
Reaction score
14
!!!!! This is it :eek::eek::eek::eek:

hero with blank command card and triggers the event "unit issued order targeting a point" upon right click

definitely +REP :D

ps the hero have this casting animation every time I right click, is there anyway to remove casting animation on specific ability rather than changing the hero's casting animation itself?

pss sorry for such a late reply today, been having a problem loading thehelper

edited ======

ahh now I just need to add the condition that checks for "smart" order id right? :D:D
Trigger:
  • B
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Issued order) Equal to (Order(smart))
 

Moradiae

TH.net Regular
Reaction score
14
Weep said:
Set "Art - Animation Names" to none. Not blank, but the text "none".

that's a new knowledge for me there ;)
unfortunately, can't rep you more for now :(
 
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