ArmA 3 Alpha: TL_fnc_getParameter, a function for easily handling required and optional parameters in your scripts
I had never dealt with optional parameters in my functions before, and by default, .sqf functions don’t have a way to handle optional parameters nor do they assign a default value if the parameter isn’t provided. I wanted to quickly check for an optional parameter, but also didn’t want to code multiple parameter checks for every function I wrote.
The result is TL_fnc_getParameter. An easy way to handle required and optional parameters in any script.