Thanks and I’m very sorry for wasting your time. Actually my code example above works as is alone but not when it was in my program because I WAS DOING SOMETHING INCREDIBLY STUPID! – FOR HOURS!
I had it in a similar BUT different function than I the one I was testing. It took a good night’s sleep and a fresh mind to spot MY STUPID MISTAKE almost instantly.
I’m very sorry. [import]uid: 295 topic_id: 1525 reply_id: 4306[/import]
No problem and I’m glad you got it working. Sometimes these little code snippets help others learn how to use Lua and the SDK. [import]uid: 7559 topic_id: 1525 reply_id: 4309[/import]
I want to say that I am one of those people that found this snippet helpful. It solved an issue I was going to have to face but hadn’t gotten to yet. Thanks! [import]uid: 6397 topic_id: 1525 reply_id: 4439[/import]