Skip to content

Instantly share code, notes, and snippets.

@cozza13
Last active December 14, 2015 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cozza13/d2af252359c7b2a4f9a5 to your computer and use it in GitHub Desktop.
Save cozza13/d2af252359c7b2a4f9a5 to your computer and use it in GitHub Desktop.
//would you like to play a game
Agent.isAvatar = true;
//Avatar.position = {x: 35.4079, y: 29.3443, z: 354.435 } ;
var clipURL = "atp:3fbe82f2153c443f12f9a2b14ce2d7fa2fff81977263746d9e0885ea5aabed62.hfr";
var playFromCurrentLocation = false;
var useDisplayName = true;
var useAttachments = true;
var useAvatarModel = true;
Recording.setPlayFromCurrentLocation(playFromCurrentLocation);
Recording.setPlayerUseDisplayName(useDisplayName);
Recording.setPlayerUseAttachments(useAttachments);
Recording.setPlayerUseHeadModel(false);
Recording.setPlayerUseSkeletonModel(true);
Recording.setPlayerLoop(true);
Recording.loadRecording(clipURL);
Recording.startPlaying();
function update(deltaTime) {
}
Script.update.connect(update);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment