Meteor Scripting Functions
Audio
  • print
    print text to the screen and console.
  • log
    Output text to the log only.
  • logPrint
    Print text to the screen and console. Also output text to the log file.
  • getPos
    Get the position of a unit or player.
  • setPos
    Set the position of a unit or player.
  • getDir
    Get the direction of a unit or player in the range 0-360.
  • setDir
    Set the direction of a unit or player in the range 0-360.
  • passToConsole
    Run console command.
  • isGamePaused
    Check whether the game is paused.
  • gameHasFocus
    Check whether the game is focused.
  • playerHasControl
    Check whether the player currently has control.
  • getElapsedTime
    Gets the time, in seconds, since the mission started.
  • saveGameVar
    Sasve a game variable to a saved game file. Only works within onGameSave() event.
  • loadGameVar
    Load a game variable from a saved game file. Only works within onGameLoad() event.