ES Recruitment Drive
Original Post
[REQ] Auto Ghost disabler
I'd like to see/use a script that automatically disables my opponent's ghost and my ghost. I don't really see anything like that around. :/
Why? Just press B and the ghosts go away. Press B again, and they come back. Why make things more complicated?
BAD LUCK
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)
:D
Thank you!! DD
Attached Files
ghosttoggler.lua (456 Bytes, 6 views)
Last edited by Ootogi; Jul 18, 2010 at 02:51 AM.
so you have requested something that you just had to press b to do more aka
esc>opions>utils>scritps>*scritp*>press O :L

Im raging, What did you get out of this exsept a script that does that same thing that b does on a deffrent key?
when you press b it doesn't "save" your options, after each move your ghosts reset or whatever.

this makes it always be off or on.
:D