• 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.

[Solved] SC@ conditions check problem

Status
Not open for further replies.
Level 15
Joined
Mar 9, 2008
Messages
2,174
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:
Level 15
Joined
Mar 9, 2008
Messages
2,174
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.
Top