Private
serverpid list of users receiving notifications, [] means all users
listening content, binary, can be combined arbitrarily: {join: '00000001', leave: '00000010', move: '00000100', transfer: '00001000', animation: '00010000', chat: '00100000', game: '01000000', robot: '10000000'}
Custom function for accepting server push
Get users standing on a special area.
If you wanna get all users standing on a special area which index is 1.
app.player.getSpecialAreaPlayerInfo(1)
Error message
the index of a special area (data in Scene.getSpaceMapInfo())
Private
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onPrivate
onSet avatar animation.
If you wanna set the avatar to wave to the front
app.player.setPlayerAnimation("000001", 11)
Error message
user id
number of animation, options: [0 - 24], details in pb.AnimationType
Set avatar direction.
If you wanna set avatar direction to right
app.player.setPlayerDirection("000001", 1)
Error message
user id
number of direction, options: [0, 1, 2, 3], 0:left, 1:right, 2: up, 3:down
Set avatar move mode.
If you wanna set the avatar to fly mode to through others
app.player.setPlayerMoveMode("000001", 1)
Error message
user id
number of move mode, options: [0, 1], 0:NORMAL_MODE 1:FLY_MODE
Set avatar location to specified coordinates in this space.
If you wanna set avatar location to specified coordinates.
app.player.setPlayerPosition("000001", [10, 20])
Error message
user id
x & y coordinates
Set avatar speed
If you wanna make avatar faster for 3 seconds
app.player.setPlayerSpeed("000001", 1.5, 3000)
Error message
user id
number of speed, range in [0, 2]
the duration of new speed, milliseconds
Generated using TypeDoc
Monitor the behavior of specified users
Example
If you wanna moniter join, leave, and move infomation of all users.
Throws
Error message