View Single Post
  #66  
Old 05-18-2005, 01:38 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Some GScript2 objects cannot be stored in variables:
(also, note that showimg rotation exists now )

HTML Code:
 showimg(2,"head122.png",10,0);
 e = findimg(2);
 e.rotation = 20; // doesn't work
 player.chat = e.x; // doesn't work

 showimg(2,"head122.png",10,0);
 findimg(2).rotation = 20; // works fine
 player.chat = findimg(2).x; // works fine

 e = this.getvarnames();
 player.chat = e.size(); // 72 - works fine
 say2(e[0]); // works fine

 e = this.getfunctions();
 player.chat = e.size(); // 0 - doesn't work
 say2(e[0]); // doesn't work

 player.chat = this.getfunctions().size(); // 98 - works fine
 say2(this.getfunctions()[0]); // works fine