Get the target of a unit's order

YLivay

New Member
Reaction score
0
Hi, first time here :D

I've wanted to ask, is there any way to get the target of a unit's order without
using the issue order trigger?

Im trying to simulate something like a warp gate.
If you pass near the warp gate but your order is not targeted to it then the warp shouldnt be activated, yet if you pass near the warp gate and your order is to go there, only then the warp should be activated. In order to do so, i need to know how to get the target of a unit's order and check if its indeed the warp gate before starting the warp.

It seems simple, yet for some reason, I can't get it to work!
Any suggestions?

Thanks in advanced :D
 

Samael88

Evil always finds a way
Reaction score
181
do you mean something like this:

Unit comes within 300 range of warp gate

Current order of unit is targeted warpgate.

Warp unit to other end?

If yes: Why don't use a normal warpgate?

If you want it to go to an empty are with no return, why don't you just make another warpgate unit and delete it's model, thus it cannot be targetable for return. That should work in that case:)
 

YLivay

New Member
Reaction score
0
I cant use a normal warpgate, I need to simulate one myself so I could check for more conditions before warping.

Anyways this: Current order of unit is targeted warpgate is exactly what I need to do
 
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