1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

How to detect 1 damaged wood tile?

Discussion in 'Modding Help' started by long_wood_bow, Jan 1, 2018.

  1. long_wood_bow

    long_wood_bow Bison Rider

    Messages:
    75
    CMap@ map = getMap();
    //tiles
    TileType tile = map.getTile(hitdata.tilepos).type;
    if (map.isTileWood(tile) || tile == CMap::tile_wood_back || tile == CMap::tile_wood_back - 1)
    return true;
    Now I'm trying to fix builder's axe animation. But I can't fix that builder can't hit 1 damaged wood tile with axe.
    How to detect 1 damaged wood tile?
     
  2. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    CMap@ map = getMap();
    //tiles
    TileType tile = map.getTile(hitdata.tilepos).type;
    if (map.isTileWood(tile) || tile == CMap::tile_wood_back || tile == 207)
    return true;
     
  3. long_wood_bow

    long_wood_bow Bison Rider

    Messages:
    75
    Thanks, it's fixed.
    If you can tell me, Could you tell me how to see tile number?
     
  4. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    Look in basePNGloader.as script, there all used values on the bottom
     
  5. long_wood_bow

    long_wood_bow Bison Rider

    Messages:
    75