AGS tidbits & snippets: Difference between revisions

Increased number of parameters per function from 9 to 15
m (Removed link to my homepage that forwards here anyway.)
(Increased number of parameters per function from 9 to 15)
Line 97: Line 97:
:''So you don't necessarily have to put the exports at the '''end''' of scripts.''
:''So you don't necessarily have to put the exports at the '''end''' of scripts.''
----
----
'''CJ''': Yes, the script engine has a '''limit of 9 parameters in a function call'''.
'''CJ''': You should be able to have '''up to 15 parameters to a function'''. [http://www.bigbluecup.com/yabb/index.php?topic=27727.msg352543#msg352543]
----
----
'''CJ''': Note that '''optional parameters only work with int and enum''' parameters, you can't do it with strings or floats.
'''CJ''': Note that '''optional parameters only work with int and enum''' parameters, you can't do it with strings or floats.
Anonymous user