Created
June 5, 2018 17:31
-
-
Save ronyx69/33d0934702e0237e4af79b424d7a6946 to your computer and use it in GitHub Desktop.
Change walk speed of all citizens.
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
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