Created
November 24, 2013 04:17
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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