• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Possible to find the player who gives an order

Status
Not open for further replies.

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
A few methods:

First, but it isn't reliable, but you can check who has selected the ordered unit.

Second: using Sharpcraft, you can get the mouse X/Y and can approximate which player issued the order based on checking the order-target point with the mouse X/Y.

Third, using Trackables and blanketing any target point of an issued order so you can check which player clicked on that patch of land.

Regardless, all methods have massive drawbacks. Are you trying to purchase an item using a shared unit or something?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Ironically this feature is in StarCraft II and has broken dozens of maps because people thought that "Triggering Player" worked like in Warcraft III and returned the owning player. In StarCraft II it quite literally returns the player who triggered the event (player who learned a skill, player who ordered a unit, player who started training etc), resulting in hilarious bugs where stuff gets applied to players it is not intended to.

In WC3 there is no such way to detect this as far as I know.
 
Status
Not open for further replies.
Top