Archive 17/01/2023.

[SOLVED] Issuing console cmds after UnsubscribeFromAllEvents

Mike

After using UnsubscribeFromAllEvents() I can’t issue commands in the console.
Is it the intended behavior and if so how to reactivate commands?

For example, in Sample.lua, if I do something like:

        engine:CreateConsole()
        UnsubscribeFromAllEvents()
        engine:CreateConsole()

Then I can’t issue commands anymore.

cadaver

In the current LuaScript implementation, this means literally unsubscribe from all, even those the LuaScript system is internally listening to. This should be quite easy to fix.

EDIT: this should be fixed now in latest master.

Mike

Great, everything is OK :stuck_out_tongue: