The addProfileParameter native AI script function is used to add a profile parameter to the current group.
()addProfileParameter(parameterName: s) // addProfileParameter_s_
()addProfileParameter(parameterName: s, parameterContent: s) // addProfileParameter_ss_
()addProfileParameter(parameterName: s, parameterContent: f) // addProfileParameter_sf_
()addProfileParameter("running");
This example code adds a parameter named "running" to the current group. Equivalent to adding the "running" parameter in the group primitive.
()addProfileParameter("foo", "bar");
This example code adds a parameter named "foo" to the current group, with a value of "bar". Equivalent to adding the "foo:bar" parameter in the group primitive.
()addProfileParameter("foo", 0.5);
This example code adds a parameter named "foo" to the current group, with a value of 0.5. Equivalent to adding the "foo:0.5" parameter in the group primitive.