Skip to content

Latest commit

 

History

History
109 lines (87 loc) · 2.17 KB

speedrun.md

File metadata and controls

109 lines (87 loc) · 2.17 KB

Speedrun

A speedrun map must have the following features:

  • Spawn
  • Ways (normal_0 to 6, secret_0 to 6)
  • Endmap trigger
  • Remove every code that is not necessary for speedrunning (music, iPrintLnBold, rooms, traps)
  • Remove moving platforms
  • Remove teleporter delays

createNormalWays(<token>)

Create normal ways seperated by a ";".

Usage Example:

sr\api\_speedrun::createNormalWays("Normal Way;");

createSecretWays(<token>)

Create secret ways seperated by a ";".

Usage Example:

sr\api\_speedrun::createSecretWays("Secret Way;");

changeWay(<way>)

Change the player's way.

Usage Example:

player sr\api\_speedrun::changeWay("secret_0");

finishWay(<way>)

Finish the player's way.

Usage Example:

player sr\api\_speedrun::finishWay("secret_0");

createEndMap(<origin>, <width>, <height>, <?way>)

Create an end map trigger, if the way parameter is not specified, the trigger will end any player ways.

Usage Example:

sr\api\_map::createEndMap((0, 0, 0), 150, 100);

createWay(<triggerOrigin>, <width>, <height>, <color>, <way>)

Create a trigger that will change the player's way.

Usage Example:

sr\api\_speedrun::createWay((0, 0, 0), 150, 100, "yellow", "normal_1");

createTeleporter(<triggerOrigin>, <width>, <height>, <origin>, <angles>, <state>, <color>, <way>)

Create a teleporter.

Parameters:

  • triggerOrigin: The trigger origin.
  • width: The trigger width.
  • height: The trigger height.
  • origin: The teleporter origin.
  • angles: The teleporter angles.
  • state: "freeze" Will freeze the player on teleporting, "none" will not freeze.
  • color: The color of the teleporter trigger.
  • way: Change the way on teleporting.

Usage Example:

sr\api\_map::createTeleporter((0, 0, 0), 150, 100, (0, 0, 0), 90, "none", "blue", "secret_0");

cj()

Make this map a CJ map.

Usage Example:

sr\api\_speedrun::cj("Secret Way;");

slide(<speed>)

Make this map a slide map.

Usage Example:

sr\api\_speedrun::slide(500);

disableXP()

Disable XP.

Usage Example:

sr\api\_speedrun::disableXP();