GetLevelInfo

From Eternity Wiki
Revision as of 04:24, 10 May 2026 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=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_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 ite...")
(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_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

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