Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Created June 5, 2018 17:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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