Page 1 of 1

Lua doubt

Posted: Fri Dec 21, 2018 1:28 pm
by Japtor
Hi,

Can a Lua function have an optional/default parameter? So when you call that function inside a Dialogue Node -> Script, you don't need to override it if it is not necessary.

thanks! :)

Re: Lua doubt

Posted: Fri Dec 21, 2018 1:59 pm
by Tony Li
No, it's strict about syntax. If you need to send a different number of parameters, you should register different functions.

Re: Lua doubt

Posted: Fri Dec 21, 2018 2:19 pm
by Japtor
Hi,

All right! No problem then! :)