Skip to content

Instantly share code, notes, and snippets.

@nickarthur
Created November 24, 2013 04:17
Show Gist options
  • Save nickarthur/7623276 to your computer and use it in GitHub Desktop.
Save nickarthur/7623276 to your computer and use it in GitHub Desktop.
Can't do this, in multi object environment. need to get the list of entities that are there already and insert yourself so you don't clobber the others.
function updatedData(globalStateData) {
error('Updated with ID: ' + getSelfEnt());
}
setGlobalState({
state_key: 'DM Key',
data: { gameObjects: { asset_c_nick: getSelfEnt() } },
callback: 'updatedData'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment