Blockland Forums > Modification Help

Function with keybind

Pages: << < (2/3) > >>

phflack:


--- Quote from: Bauklotz on February 05, 2011, 04:01:49 AM ---function myToggle(%val) {
    if(!%val)
        return;
    $myToggle = !$myToggle;
}

--- End quote ---
isn't that basicaly the same as what i said, for the toggling?

Nexus:


--- Quote from: phflack on February 07, 2011, 12:34:17 AM ---isn't that basicaly the same as what i said, for the toggling?

--- End quote ---

nop.

phflack:


--- Quote from: Nexus on February 07, 2011, 02:29:24 AM ---nop.

--- End quote ---
how so?

Nexus:

because his toggles when the person presses a button.  Yours is determined by whether the button is held down or not.

Deathwishez:

What if the keybind setting thingies were put in a server.cs?

Would it break?

Pages: << < (2/3) > >>

Go to full version