Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-16-2004, 09:13 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
dynamic setshape2?

Ok so i dont really know if this is possibile or not yet, i know what im trying to do, and ive done it every way i can really think of.

What i was trying to do was use imgwidth and imgheight to get the first two numbers for setshape2 then based on that, turn it into the correct tiletype.

So here is what i did

NPC Code:

this.length = imglength(chair1.png);
this.width = imgwidth(chair1.png);



from that i get i think 5 for length and 3 for width, anyways

then I got here, and its where i have my question
NPC Code:

setshape2 this.length,this.width,{tiletypes};



now i guess what im wondering is if its possibile to set the tiletypes based on the length and width of an image, Say i had two diffrent chairs, but one is larger then the other. Mabye there is something i have overlooked, or this just isnt possibile yet. (or at all ever? )
__________________
Reply With Quote
 


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 11:34 PM.


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