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.

Detecting blocks on the same subgrid?

Discussion in 'Programming Questions and Suggestions' started by Hale, Jul 18, 2017.

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

    Messages:
    78
    Is there some way for a script to check if two blocks belong to the same subgrid?
     
  2. Wicorel Senior Engineer

    Messages:
    1,239
    Code:
    if(block1.CubeGrid == block2.CubeGrid)
    {
    // same sub grid
    }
    
     
  3. Hale Trainee Engineer

    Messages:
    78
    Thanks!
     
Thread Status:
This last post in this thread was made more than 31 days old.