Skip to content
mika edited this page Mar 6, 2018 · 4 revisions

Player

  • void TogglePlayerMovement(bool toggle)
    • enable player movement (as in terrain level)
  • float[] GetPlayerPosition()
    • returns (this current client) player position
    • result is float array, note: lua array starts from 1
  • void SetPlayerPosition(float x, float y, float z)
    • sets players position
  • void TweenMovePlayer(float x, float y, float z, float duration)
    • animates player position movement
  • void ResetPlayerPosition()
    • Resets player position and rotation for current mode
    • Example: if you are in Photosphere mode, player is moved to center again
  • void TogglePlayerPlatform(bool state)
    • Toggles visibility for the floating platform under the player (it will follow player if player moves)
Clone this wiki locally