Avatar Data

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

Contents

Overview

Below we compare the functions for getting user/avatar data such as Name and ClientID.

The provided functions can be used to get:

  • the local player's data
  • any avatar's data
  • a minigame player's data


MMO:GetLocalCharacterData()

This function returns a table containing the following data for the logged in user.

  • Name
  • NameWithoutShortName
  • ShortName
  • AvatarID
  • ClientID
  • Gender
  • ChatColor
  • Entity

See Multiplayer/Getting local character data for further details, and for a short-cut function to get the Entity, MMO:GetLocalAvatarEntity().


ARVirtualWorld.GetAvatarData(entity)

This function returns a table containing the following data for any avatar by entity.

  • Name
  • ShortName
  • ClientID
  • Items
  • Face
  • Gender

See ARVirtualWorld/GetAvatarData for further details.


Minigame player GetAvatarData(player_number)

This function returns a table containing the following data for a particular player number. It is limited to the context of a minigame launched by a game supervisor, and is called by the player script.

  • Name (same as ARVirtualWorld.GetAvatarData's ShortName)
  • ClientID

See Multiplayer Minigame API/GetAvatarData for further details.

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools