-
Notifications
You must be signed in to change notification settings - Fork 94
set_nel_var
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set NeL Variable description: published: true date: 2023-03-16T23:11:10.777Z tags: editor: markdown dateCreated: 2023-03-16T22:28:53.762Z
The setNelVar native AI script function sets the content of a NeL Variable. If the variable does not exist, it will be created.
()setNelVar(varId: s, value: f)
()setNelVar(varId: s, value: s)
- varId (string): The name of the variable to set.
- value (float or string): The value to set the variable to.
This function does not return a value.
()setNelVar("BotCount", 32);
()setNelVar("BotFamily", "the_killers");
These examples set the value of the NeL variables "BotCount" and "BotFamily", respectively.