addHook("LinedefExecute", function(line, mo, sec)
    if mo.player == nil then return end
    mo.state = _G[line.stringargs[1]]
end, "CHNGPLST")