While Error

Typically: "How do I... ", "How can I... " questions
Post Reply
Coisoecenas
Posts: 8
Joined: 13 Jan 2014, 13:47

While Error

Post by Coisoecenas »

Hi.

I was trying to do a 'while ... do ... end' but the following error comes out: "attempt to yield across metamethod/C-call boundary". How can I solve it?

Thanks

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: While Error

Post by coppelia »

Hi,

have a look here. For a very simple example, simply attach a threaded child script to an object, and inspect the script content.

Cheers

Coisoecenas
Posts: 8
Joined: 13 Jan 2014, 13:47

Re: While Error

Post by Coisoecenas »

Hi.

Tks for the help. It solved my problem. Just another thing. I found that LUA dont have any sleep/wait function. Do you know how to solve this problem?

Thanks

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: While Error

Post by coppelia »

When you are running a non-threaded child script, you should not sleep/wait anyway. But if you are running a threaded child script, you can use simWait.

Cheers

Post Reply