Modding:Worlds: Difference between revisions

m
Fix typo
m (Use ZoneBuilderPriority rather than hard-coded numbers.)
m (Fix typo)
Line 147: Line 147:


             // Add an object to the zone
             // Add an object to the zone
             // Replace "Oboroqoru" with the object ID of the creature you wnat to add
             // Replace "Oboroqoru" with the object ID of the creature you want to add
             var creature = GameObject.Create("Oboroqoru");
             var creature = GameObject.Create("Oboroqoru");
             zoneManager.AddZonePostBuilder(zoneID, nameof(AddObjectBuilder), "Object", zoneManager.CacheObject(creature));
             zoneManager.AddZonePostBuilder(zoneID, nameof(AddObjectBuilder), "Object", zoneManager.CacheObject(creature));