Lua doubt

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Lua doubt

Post 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! :)
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lua doubt

Post by Tony Li »

No, it's strict about syntax. If you need to send a different number of parameters, you should register different functions.
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Re: Lua doubt

Post by Japtor »

Hi,

All right! No problem then! :)
Post Reply