Skip to content

Instantly share code, notes, and snippets.

@Atlante45
Created October 9, 2018 20:34
Show Gist options
  • Save Atlante45/505c085cd5c9155f50ff7ef022ae0de9 to your computer and use it in GitHub Desktop.
Save Atlante45/505c085cd5c9155f50ff7ef022ae0de9 to your computer and use it in GitHub Desktop.
Agent.isAvatar = false;
var count = 0;
Script.update.connect(function(dt) {
count += dt;
if (count > 5) {
console.log("Update");
count = 0;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment