-
Notifications
You must be signed in to change notification settings - Fork 94
add_profile_parameter
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Add Profile Parameter description: published: true date: 2023-03-16T23:05:00.220Z tags: editor: markdown dateCreated: 2023-03-16T22:21:00.815Z
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_
- parameterName (string): The id of the parameter to add.
- parameterContent (string|float, optional): The value of the parameter.
()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.