StarCraft 2 WASD Library (8-Directional) 2022 download
logo
starcraft 2 mod WASD Library (8-Directional)

WASD Library (8-Directional)

Game Version: -
Total Downloads: 2,307
Updated: May 24, 2010
Created: May 24, 2010

Earlier Versions

Name Size Uploaded Game Version Downloads
WASD Movement Library v1.1 release 12.28 KB May 24, 2010 - 1,821 download WASD Library (8-Directional) WASD Movement Library v1.1 releaseDownload
WASD Movement Library v1.0 release 11.80 KB May 24, 2010 - 486 download WASD Library (8-Directional) WASD Movement Library v1.0 releaseDownload

Description

Share this:

Very easy-to-use WASD Library by rrowland. Currently turns your unit in the direction you are running, may later be expanded to toggle strafing/backpedaling.

Current Version: 1.1
By: rrowland

  • Using mostly custom script to save a ton of trigger space. Only 11kb!
  • Bitwise operations make memory footprint small, code easy to read and processing fast.
  • Very simple to use.
  • Supports up to 16 players.
Important: After importing you must change the library ID to ‘WASD’.

Public Functions:

WASD KeyDown Check(int Player, key 'Key Pressed')

Place this in the map's "Key Down – Any Player – Any Key" trigger.

Example:

    Events
        UI - Player Any Player presses None key Down with shift Allow, control Allow, alt Allow
    Actions
        WASD KeyDown Check((Triggering player), (Key Pressed))

WASD KeyUp Check(int Player, key 'Key Pressed')

Place this in the map's "Key Up – Any Player – Any Key" trigger.

Example:

    Events
        UI - Player Any Player presses None key Up with shift Allow, control Allow, alt Allow
    Actions
        WASD KeyUp Check((Triggering player), (Key Pressed))

WASD Set Controlled Unit(int Player, unit Unit)

Use this to set which unit a player is controlling with WASD.

Example:

    Events
        Game - Map initialization
    Actions
        WASD Set Controlled Unit(1, Zealot [46.33, 46.85])

Comments

Add a comment