Last active
August 29, 2015 14:14
-
-
Save huffman/a6c76b27712f5350cbc1 to your computer and use it in GitHub Desktop.
Self evaluating entity script
This file contains hidden or 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(){ | |
print("Loading self evaluating entity script"); | |
this.preload = function(entityID) { | |
var properties = Entities.getEntityProperties(this.entityID); | |
eval(properties.userData); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment