• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] SC@ conditions check problem

Status
Not open for further replies.
Level 16
Joined
Mar 9, 2008
Messages
2,175
The main problem with this trigger is that apparently the check if the "point is in region == true" doesnt work. I even tried checking if the X and Y coordinates of the point are within the bounds of the region's bottom left and top right XY coordinate points. But no avail.
2nvvwx1.jpg


I have seen it work properly in some old beta video tutorials. Primarily this one: http://youtu.be/xVCMHjE998k?t=7m46s

EDIT: I used "mouse click position in the UI" instead of the "mouseclick position in the world". I guess it's an outdated tutorial.
Someone mark it as solved, since I can't.
 
Last edited:
This was likely generating a point that was not in the region seeing how the UI uses a completely different coordinate system from the play field.

Yes, only then i noticed that the coordinates were expressed in integers and not reals. UI coordinates are pretty much positions of particular pixels, if i remembered to click in the top right corner the problem would become obvious since coords would be 1920,1080.
 
Status
Not open for further replies.
Back
Top