Sets the identity level of the running thread. Lowering it makes the thread behave like a lower-privilege context, which is useful for testing how a game script sees its environment; raising it restores access. The value must be a number. Also registered as setidentity, setthreadcontext, set_thread_identity.

Parameters

number
required
The identity level to set.

Example

Errors