Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Created June 5, 2018 17:31
Show Gist options
  • Save ronyx69/33d0934702e0237e4af79b424d7a6946 to your computer and use it in GitHub Desktop.
Save ronyx69/33d0934702e0237e4af79b424d7a6946 to your computer and use it in GitHub Desktop.
Change walk speed of all citizens.
for (uint i = 0; i < PrefabCollection<CitizenInfo>.LoadedCount(); i++) {
var prefab = PrefabCollection<CitizenInfo>.GetLoaded(i);
if (prefab == null) continue; prefab.m_walkSpeed = 0.5f; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment