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.

Merge Block issues (IsConnected)

Discussion in 'Programming (In-game)' started by Neotician, Jun 25, 2019.

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

    Messages:
    440
    I'm making a thing that moves along a rail and extends it as it goes, for various applications.

    Basically, the thing moves along the rail with 2 merge blocks, but i'm having some issues.

    The (MergeBlock).IsConnected function returns true as early as the merge block indicator turns yellow, eg. when it's getting close, but still isn't connected, does anyone know of a method of detecting if the merge block is actually merged? currently just checking the position of the piston moving the merge block, but that gives a dangerously small margin of error.
     
    Last edited: Jun 26, 2019
  2. Malware Master Engineer

    Messages:
    9,601
    The quick and dirty solution would be to check if there's a block in the grid position in front of the merge block.
     
  3. Ronin1973 Master Engineer

    Messages:
    4,801
Thread Status:
This last post in this thread was made more than 31 days old.