Skip to content

Queries

mika edited this page Dec 28, 2017 · 5 revisions

Queries

  • float[] GetPosition(string target)
    • get gameobjects position
    • result is float[] array: p[0] = x, p[1] = y, p[2] = z
    • if cannot find gameobject, returns -1,-1,-1
  • bool FindObject(string target)
    • returns true if gameobject can be founded, or false if not found
  • float TimeSinceLastTap()
    • returns time in seconds since last tap event (accelerometer tap detection)
    • returns negative value if no tap events yet
  • int TouchCount()
    • returns touch count (how many fingers touching screen)
  • string GetUserName()
    • returns username that has been set in character customizer
    • note: this is not unique username, can be anything.
    • Returns "Unknown" if not set
  • bool IsSelfPaced()
    • returns true if client is in selfpaced mode
  • bool isOfflineMode()
    • returns true if client is in offline mode
    • Note: not really useful right now, because if client is offline, it doesnt load scripts from server first
Clone this wiki locally