GetLevelInfo: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(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...")
 
No edit summary
 
Line 4: Line 4:
*''type'': one of the following:
*''type'': one of the following:
:*'''LEVELINFO_PAR_TIME''' (0): par time, in seconds
:*'''LEVELINFO_PAR_TIME''' (0): par time, in seconds
:*'''LEVELINFO_CLUSTERNUM''' (1): episode index, in episode
:*'''LEVELINFO_LEVELNUM''' (2): level index, in episode
:*'''LEVELINFO_LEVELNUM''' (2): level index, in episode
:*'''LEVELINFO_TOTAL_SECRETS''' (3): amount of secrets available in map
:*'''LEVELINFO_TOTAL_SECRETS''' (3): amount of secrets available in map
Line 11: Line 12:
:*'''LEVELINFO_TOTAL_MONSTERS''' (7): amount of monsters placed in map
:*'''LEVELINFO_TOTAL_MONSTERS''' (7): amount of monsters placed in map
:*'''LEVELINFO_KILLED_MONSTERS''' (8): total killed monsters, both by players and non-players
:*'''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=The needed property value
|return=The needed property value
|id=ACC internal
|id=ACC internal
}}
}}

Latest revision as of 04:39, 10 May 2026

Description[edit]

This is an ACS built-in function.

Gets various information from level.

Usage[edit]

int GetLevelInfo(int type)

Parameters[edit]

  • 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[edit]

The needed property value

Examples[edit]

No examples given.

Notes[edit]

No particular notes.

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

See also[edit]