Returns a LuaStateProxy for a specific actor or script. With no argument it returns a proxy for the current state. Returns nil when no matching state is available.

Parameters

Actor or BaseScript
default:"the current state"
The actor or script to resolve. Defaults to the current state.

Returns

LuaStateProxy or nil
The matching proxy, or nil.

Example

Errors