Page 1 of 1

Meshinstance that doesn't give lua error!

Posted: Wed Jul 02, 2008 12:43 am
by synthsin75
I finally got tired of fa_meshinstance telling me that I had the layers in the wrong order when they weren't. Turns out there was an extra line of code that wasn't needed.
print("MeshInstance: wrong order - swap the source and the copy!")
return
The first entry of this in the script is what actually does its job. I have no idea what the second was meant for. Just delete the second time this shows up, including the return.

Or download my fixed version here:http://www.mediafire.com/?1cjdowizmta

I tested this, but I'm no scripter. I don't think deleting a print function could mess anything up.

Anyway, I hope others enjoy a meshinstance that doesn't keep spitting out lua errors. :wink:

Posted: Wed Jul 02, 2008 10:28 am
by jahnocli
Thanks for that! I don't usually use scripts much (more of an old school "brute force" kind of guy!), and I'm a bit of a late adopter, so as and when I start using meshinstance I'll be saying a quiet 'thank you'!