ZScript special words

From ZDoom Wiki
Jump to: navigation, search
Note: This feature is for ZScript only.

ZScript contains special words for certain circumstances.

  • is
    Compares a pointer to a class type. Similar to CheckClass with ancestor checks always enabled.
if (mobj is "classname")
  • let
    Auto deduces class types to a pointer. If the class is not the specified type, the pointer will be null.
let ptr = DoomImp(target);
  • out
    Qualifier for function parameters. Allows passing of a parameter by reference.
  • in
    Qualifier for function parameters, but has no purpose aside for documentation. Can be specified with 'out'.

See also