Returns a LuaStateProxy for the main game Lua state, or nil if it is unavailable. Its IsActorState is false, which distinguishes it from the proxies getactorstates returns.

Returns

LuaStateProxy or nil
A proxy for the main state, or nil.

Example