Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2011, 08:22 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
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?
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #2  
Old 07-01-2011, 08:23 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
findImg(x).polygon should return the array of coordinates, although I haven't tried this myself.
__________________
Reply With Quote
  #3  
Old 07-01-2011, 08:32 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by Crow View Post
findImg(x).polygon should return the array of coordinates, although I haven't tried this myself.
Thanks, that worked.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:41 AM.


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