Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Last active May 22, 2021 11:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronyx69/6732167cabd319e2f4731fa39a056515 to your computer and use it in GitHub Desktop.
Save ronyx69/6732167cabd319e2f4731fa39a056515 to your computer and use it in GitHub Desktop.
Tag station tracks for usage in Railway track replacer UI.
var stationTrackType = "r69rwst-double"; // The type of station track:
// r69rwst-double (normal double station track)
// r69rwst-edouble (elevated double station track)
// r69rwst-single2 (single station track - two sided boarding)
// r69rwst-single1 (single station track - left sided boarding)
// r69rwst-singler (single station track - right sided boarding)
// r69rwst-esingle2 (elevated single station track - two sided boarding (shinkansen only afaik))
// r69rwst-esinglel (elevated single station track - left sided boarding)
// r69rwst-esingler (elevated single station track - right sided boarding)
// r69rwst-wide (bad peanut wide station track and train station ccp)
// r69rwst-ewide (train stations ccp)
// r69rwst-quadbypass (4 tracks together - train stations ccp)
// r69rwst-quadisland (4 tracks with islands - train stations ccp)
// r69rwst-equadbypass (ditto elevated - train stations ccp)
// r69rwst-equadisland (ditto elevated - train stations ccp)
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as NetInfo;
asset.m_segments[0].m_lodMaterial.name = stationTrackType;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment