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