PDA

View Full Version : Can't get limits



KeenanCrane
10-19-2003, 10:47 AM
-Keenan Crane
http://www.geocities.com/keenan_crane

fxnut
10-19-2003, 01:19 PM
Originally posted by KeenanCrane
obj = Mesh()
while(obj)
{
limitList += obj.limits(ROTATION);
obj = obj.next();
}
Hmm, I don't think that that's a valid way of adding elements to an array (and you missed the ";" after Mesh() ). I think you should try doing something more like this:



obj = Mesh();
count = 1;
limitList = nil;

while(obj)
{
limitList[count] = obj.limits(ROTATION);
count++;
obj = obj.next();
}


That's off the top of my head tho, so don't complain if it doesn't work!

Regards

Andy

KeenanCrane
10-19-2003, 04:13 PM
-Keenan Crane
http://www.geocities.com/keenan_crane

fxnut
10-20-2003, 04:44 AM
Yeah, sorry - I just hadn't seen that array syntax before. I can confirm the problem you're having though. Another LScript bug to add to the list. :(