wolfCall
Wolf Territorieslist wolfCall(string name, list args)
Calls the Wolf plugin function `name` with `args` and returns its answer as a list. Returns an empty list with wolfGetLastError saying why when there is no such plugin function on this region, the plugin refused, ran too long or failed. Defined on Wolf_Api.wolfCall / IWolfPluginCalls.
Calls a Wolf plugin function and returns its answer as a list. Plugins are pieces of region software the grid adds and updates while the region keeps running - no restart - so new features can arrive without waiting for one. Each plugin gives its functions names (for example "echo" or "greet"); wolfCall finds whichever plugin answers that name on this region now. The list you pass is handed to the plugin as it is (integers, floats, strings, keys, vectors and rotations keep their types) and its answer comes back the same way. A call takes a moment at most: the region stops a plugin that runs too long. If there is no such function on this region, the plugin refuses, fails or is busy, you get an empty list and wolfGetLastError says why. A function that needs time (one that asks the web, say) answers through wolfCallAsync instead, and says so if you use wolfCall. Which plugins a region has is up to the grid; their functions are listed with them.
Parameters
| Type | Name | What it does |
|---|---|---|
| string | name | The plugin function to call, e.g. "echo". |
| list | args | What to give it: any list. |
Example
// Ask the region's echo plugin something and say the answer.
touch_start(integer n)
{
list answer = wolfCall("echo", [llDetectedName(0), 42, <1.0, 2.0, 3.0>]);
if (llGetListLength(answer) == 0)
llOwnerSay("No answer: " + wolfGetLastError());
else
llOwnerSay("The plugin answered " + llList2CSV(answer));
}Ours alone. Grid features you will not find on any other OpenSimulator grid.