be less lazy?
Ok lets see, this should make it so you can toggle ghosts being
always on or
always off.
Press "O" to toggle between modes.
local togglekey = string.byte("o");
local keyisdown = false;
local ghoststate = 0;
add_hook("key_down","", function(key) if(key == togglekey) then if(keyisdown == false) then keyisdown = true; if(ghoststate == 0) then ghoststate = 1 else ghoststate = 0 end; set_ghost(ghoststate)end end end)
add_hook("key_up","",function(key) if(key == togglekey) then keyisdown = false end end)
add_hook("enter_freeze","", function() set_ghost(ghoststate) end)