Page 1 of 1
Possible getConnector bug.
Posted: Sun Dec 07, 2014 4:46 am
by Thorham
I think Component:getConnector(i) contains a bug, because it only returns a string, namely the condition, while it seems it should return a list with the condition, target and action.
Re: Possible getConnector bug.
Posted: Tue Dec 09, 2014 2:37 pm
by petri
getConnector has multiple return values, you need to do something like this:
Code: Select all
local a,b,c = yourComponent:getConnector(1)
Re: Possible getConnector bug.
Posted: Tue Dec 09, 2014 3:00 pm
by Thorham
petri wrote:getConnector has multiple return values, you need to do something like this:
Code: Select all
local a,b,c = yourComponent:getConnector(1)
Oh lord

Didn't realize Lua has multiple return values. Thanks
