Navigation

    forum

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

    Cyprus

    @Cyprus

    2
    Posts
    875
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Cyprus Follow

    Posts made by Cyprus

    • RE: costCallBack in creep.moveTo doesn't appear to do anything.

      @stevetrov lol Well that's embarrassing! Works great now. Thank you.

      posted in Help
      Cyprus
    • costCallBack in creep.moveTo doesn't appear to do anything.

      I am trying to get some creeps to avoid going through Ramparts but when I add a costCallBack function to moveTo nothing changes. Am I using this wrong? Any help would be much appreciated.

      creep.moveTo(target, {visualizePathStyle: {stroke: '#00ff00'}, costCallBack: function(roomName, cm)

      {

      var ramparts = Game.rooms[roomName].find(FIND_STRUCTURES, {filter: i => i.structureType == STRUCTURE_RAMPART});

      ramparts.forEach(i => cm.set(i.pos.x, i.pos.y, 255));

      }});

      posted in Help
      Cyprus