del_nel_var - ryzom/ryzomcore GitHub Wiki
title: Delete NeL Variable description: published: true date: 2023-03-13T00:49:18.322Z tags: editor: markdown dateCreated: 2023-03-13T00:49:14.896Z
The delNelVar native AI script function deletes a NeL Variable.
()delNelVar(varId: s, value: f) // delNelVar_sf_
()delNelVar(varId: s, value: s) // delNelVar_ss_
- varId (string): The name of the variable to delete.
- value (float or string): The passed value is used to determine the type of the variable, but its content is ignored.
()delNelVar("BotCount", 0);
This example code deletes the "BotCount" NeL Variable.
()delNelVar("BotFamily", "");
This example code deletes the "BotFamily" NeL Variable.