ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:misc

This is an old revision of the document!


Miscellaneous ZDoom utilities

KeyBound

bool KeyBound(str command)

Returns true if the command is bound to any key.

This function works by calling StrParam(k:command) and reading the returned string. If the returned string is “??? (command)”, no key is bound to the command.

Examples:

if (!KeyBound("mymod_menu"))
    print(s:"Please bind a key to open the menu");

Can also be used with +aliases and -aliases:

if (!KeyBound("+mymod_sprint"))
    print(s:"Please bind a sprint key");

SyncSpeed

A function copied from ZDoom wiki: syncspeed.

new/misc.1519137053.txt.gz · Last modified: 2018/02/20 16:30 by korshun