Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Get own grid name

Discussion in 'Programming Questions and Suggestions' started by |ab18| ~ icke ~, Aug 23, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. |ab18| ~ icke ~ Trainee Engineer

    Messages:
    17
    Hi, I just started programming in c#.

    I'm looking for a possibility to get the name of the own grid.
    Means same grid as the programming block.
     
  2. Malware Master Engineer

    Messages:
    9,861
    Me.CubeGrid.CustomName
     
  3. |ab18| ~ icke ~ Trainee Engineer

    Messages:
    17
    Thank you, works fine!

    Additional question:
    Could anyone tell me how i change the name of a blockgroup, so that it allows whitespaces?
    Because this apparently doesn't work.

    Code:
    shipThruster.Name = Me.CubeGrid.CustomName + " Thruster";
     
  4. Malware Master Engineer

    Messages:
    9,861
    You can't change block groups from the programmable block.
     
Thread Status:
This last post in this thread was made more than 31 days old.