Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Reading position of a polygon (https://forums.graalonline.com/forums/showthread.php?t=134263713)

iBeatz 07-01-2011 08:22 PM

Reading position of a polygon
 
How would you go about reading the different x and y positions of a polygon?
I've tried using findImg(int).x and findImg(int).y, but these just return 0 for the polygon in question.
I knew the findImg() command was unlikely to work, seeing as polygons have multiple coordinates, but I just wanted to see if it did work.
Is there any way to read the plotted points of a polygon?

Crow 07-01-2011 08:23 PM

findImg(x).polygon should return the array of coordinates, although I haven't tried this myself.

iBeatz 07-01-2011 08:32 PM

Quote:

Originally Posted by Crow (Post 1656952)
findImg(x).polygon should return the array of coordinates, although I haven't tried this myself.

Thanks, that worked. :blush:


All times are GMT +2. The time now is 01:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.