v0.13.8

setfenv

functionimplementedavailable in: camelot

Modifies the environment associated with a function.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
ffunctionor number - A function to modify the environment of, or a numeric level of a function on the call stack starting from 1.
envtableThe environment to be assigned to the function.

Returns

f · function · The function whose environment was modified.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.