Ifhitspace - EDukeWiki

# Ifhitspace

From EDukeWiki

ifhitspace { do something } else { do something else }

Checks to see if the player has pressed the open button (space by default).

    // This will cause a sprite to fall when "open" button is pressed.

    actor FALLING_APPLE
      ifhitspace
        {
          fall
        }
    enda

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Ifhitspace&oldid=8040"
Categories:

- Duke3D 1.3/1.5 commands
- Player manipulation
- If conditions