The getNelVar native AI script function returns the content of a NeL variable. The variable is created if it doesn't exist.
(value: f)getNelVar(varId: s) // getNelVar_s_f
(value: s)getNelVar(varId: s) // getNelVar_s_s
(botCount)getNelVar("BotCount");
This example code retrieves the content of the "BotCount" NeL variable and stores it in the botCount
variable.
(botFamily)getNelVar("BotFamily");
This example code retrieves the content of the "BotFamily" NeL variable and stores it in the botFamily
variable.