SC2Mapster.com Wiki

SC2 API / Functions / MeleeInitOptions

MeleeInitOptions

void MeleeInitOptions()

Enforce victory/defeat conditions.

  • It only works once. Calling it multiple times does nothing after the first time.

Examples

Example: Sample Usage
void InitMap() {
  MeleeInitResources();
  MeleeInitUnits();
  MeleeInitAI();
  MeleeInitOptions();
}

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of vjeux vjeux Mar 24, 2010 at 13:10 UTC - 0 likes

    This is at the moment the only way to have a proper "End of game" window. Basically you call this function when you want to end the game. If no ones has a town hall, it will pop up the window.

  • 1 comment

Facts

Date created
Mar 24, 2010
Last updated
Mar 24, 2010

Author