What happens when a creep is not on path specified by moveByPath?
-
I have a predefined path from a spawn to an energy source. Also there is a creep standing to the right from the spawn, but not on the path. What happens if a command it to
moveByPath (path)
? Will it try to move to path and then follow it or throw an error? I'm kind of afk so can't test it myself.
-
According to creep.moveByPath documentation, It'll return
ERR_NOT_FOUND
-
Oh, thanks, it wasn't in the documentation yesterday