####The basics of "param"
param
and the related, but not to be confused with, params
command are fairly new additions to the Arma 3 SQF library (- they came with v1.48).
While it feels to me like params
is rightfully catching up in usage in the Arma scripting community, replacing ugly and slow _this select N
constructions that take up multiple lines and are tiring to look at, param
is still largely ignored.
param
was introduced during the initiative to replace common BI functions (here: BIS_fnc_param
) with native SQF commands, in an effort to increase code performance and readability.
Other notable examples are sort
(v1.44), arrayIntersect
(v1.48), remoteExec(Call)
(v1.50) and the new "conditional select" select CODE
(v1.56)