Athi_CouRage

Freeze while changing Dimension

Recommended Posts

Posted (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 by Athi_CouRage

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.