BlacKnightBK 47 Posted March 19, 2017 Hello guys, I was wondering how do I create a function that contains optional params. E.g [arg1,arg2,arg3] call fnc_function; Lets say that I place argument 1 and 2 but i do not place 3 and instead a preset value will be used instead. Some BIS functions are like that. I wonder if we the community can do that as well. Thanks :) Share this post Link to post Share on other sites
serena 150 Posted March 19, 2017 https://community.bistudio.com/wiki/params https://community.bistudio.com/wiki/param My personal opinion: optional parameters impair the quality of the code, it is better to avoid using them if possible. Share this post Link to post Share on other sites
thedubl 43 Posted March 19, 2017 Yes, look at the biki for functions. Its all there. https://community.bistudio.com/wiki/Function 1 Share this post Link to post Share on other sites