Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. tielvar
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    tielvar

    @tielvar

    1
    Posts
    681
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    tielvar Follow

    Posts made by tielvar

    • ConstructionSite -> Structure

      What is the best way to detect the transformation of Construction site into Structure?
      I can only detect the moment when construction site disapears from the room and find the construction on the same place. Like this:

      var disappear = Game.getObjectById(constructionId) === undefined;
      var appear = position.lookFor('structure').length > 0;
      if (disappear && appear) {
          //it happened
      }
      

      But I think this way isn't good. Any suggestions?

      posted in Help
      tielvar