Athi_CouRage Posted June 24, 2019 Share Posted June 24, 2019 (edited) problem solved. 👍 Spoiler public void ResourceStart() { for (int i = 1; i < 50; i++) { FraktionInfo fraktion = Datenbank.GetByID<FraktionInfo>(i); if (i < 20) { if (fraktion != null) { NAPI.Util.ConsoleOutput($"ID {i} = {fraktion.FrakName}"); NAPI.Marker.CreateMarker(31, new Vector3(fraktion.Basepoint[0], fraktion.Basepoint[1], fraktion.Basepoint[2]), new Vector3(), new Vector3(), 2, new Color(255, 255, 0), true); NAPI.ColShape.CreateSphereColShape(new Vector3(fraktion.Basepoint[0], fraktion.Basepoint[1], fraktion.Basepoint[2]), 3); string myString = fraktion.FrakName + Environment.NewLine + "Leader: " + fraktion.Leader + Environment.NewLine + "Prods: " + fraktion.Prods; NAPI.TextLabel.CreateTextLabel(myString, new Vector3(fraktion.Basepoint[0], fraktion.Basepoint[1], fraktion.Basepoint[2]), 10, 5, 2, new Color(255, 255, 255)); NAPI.ColShape.CreateSphereColShape(new Vector3(fraktion.BaseInt[0], fraktion.BaseInt[1], fraktion.BaseInt[2]), 3, fraktion.Dimension); } } HausInfo haus = Datenbank.GetByID<HausInfo>(i); if (haus != null) { uint dim = (uint)haus.Dimension; NAPI.Util.ConsoleOutput($"ID {i} = {haus.HausName}"); NAPI.Marker.CreateMarker(29, new Vector3(haus.Hauspoint[0], haus.Hauspoint[1], haus.Hauspoint[2]), new Vector3(), new Vector3(), 2, new Color(255, 0, 0), true); NAPI.ColShape.CreateSphereColShape(new Vector3(haus.Hauspoint[0], haus.Hauspoint[1], haus.Hauspoint[2]), 3); string myString = haus.HausName + Environment.NewLine + "Besitzer: " + haus.Besitzer + Environment.NewLine + "Prods: " + haus.Prods; NAPI.TextLabel.CreateTextLabel(myString, new Vector3(haus.Hauspoint[0], haus.Hauspoint[1], haus.Hauspoint[2]), 10, 5, 2, new Color(255, 255, 255)); NAPI.ColShape.CreateSphereColShape(new Vector3(haus.HausInt[0], haus.HausInt[1], haus.HausInt[2]), 3, haus.Dimension); } } } create Interior: Edited June 25, 2019 by Athi_CouRage Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now