GetLevelInfo

From Eternity Wiki
Revision as of 04:39, 10 May 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

This is an ACS built-in function.

Gets various information from level.

Usage

int GetLevelInfo(int type)

Parameters

  • type: one of the following:
  • LEVELINFO_PAR_TIME (0): par time, in seconds
  • LEVELINFO_CLUSTERNUM (1): episode index, in episode
  • LEVELINFO_LEVELNUM (2): level index, in episode
  • LEVELINFO_TOTAL_SECRETS (3): amount of secrets available in map
  • LEVELINFO_FOUND_SECRETS (4): total found secrets by all players
  • LEVELINFO_TOTAL_ITEMS (5): amount of MF_COUNTITEM items available in map
  • LEVELINFO_FOUND_ITEMS (6): total collected items by all players
  • LEVELINFO_TOTAL_MONSTERS (7): amount of monsters placed in map
  • LEVELINFO_KILLED_MONSTERS (8): total killed monsters, both by players and non-players
  • LEVELINFO_SUCK_TIME (9): level time in seconds after which the intermission will show "SUCKS".

Return value

The needed property value

Examples

No examples given.

Notes

No particular notes.

This function's identification in zspecial.acs is: ACC internal.

See also