-
Notifications
You must be signed in to change notification settings - Fork 94
add_persistent_profile_parameter
Ryzom Core Wiki edited this page Jul 8, 2024
·
2 revisions
title: Add Persistent Profile Parameter description: published: true date: 2023-03-16T23:04:57.348Z tags: editor: markdown dateCreated: 2023-03-16T22:20:57.255Z
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_
- parameterName (string): The ID of the profile parameter to add.
- parameterContent (string or float, optional): The value of the profile parameter.
()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.