Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Created August 26, 2017 19:37
Show Gist options
  • Save ronyx69/d8e017bdf61c7a194c5d0e31b7021d62 to your computer and use it in GitHub Desktop.
Save ronyx69/d8e017bdf61c7a194c5d0e31b7021d62 to your computer and use it in GitHub Desktop.
//scripts to use with the Realtime mod, filename must match file prefix in import folder
var type="building";
var filename="thing"; var assetname="thing";
Type.GetType("Realtime.RealtimeMod").GetMethod(type).Invoke(null, new object[] { filename, assetname });
var type="prop";
var filename="snow1"; var assetname="snow1";
Type.GetType("Realtime.RealtimeMod").GetMethod(type).Invoke(null, new object[] { filename, assetname });
var type="vehicle";
var filename="tbus"; var assetname="tbus";
Type.GetType("Realtime.RealtimeMod").GetMethod(type).Invoke(null, new object[] { filename, assetname });
var type="tree";
var filename="plant1"; var assetname="plant1";
Type.GetType("Realtime.RealtimeMod").GetMethod(type).Invoke(null, new object[] { filename, assetname });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment