Using a loop with no sleep functions to constantly set an enemy's x and y coords to relative 0 will lock it in place. This is because relative move item moves the enemy back to its start position before moving it. This is useful for invisible enemy hitboxes that are not contained in a walled box.
Here's an example with a moonwalking swordsman and a static Shadow Creature.
- Code: Select all
25x25~.550aa75~~~~0;144;664;1;0;0~6;112;608;64;64;0;1;activate,lockEnemies|71:knight1;304;712;0;;1;1;6;|66:shadowcreature1;432;592;0;;1;1;4;|6:lockEnemies;0;800;16;16;0;1;move,knight1,0,0,0,0:move,shadowcreature1,0,0,0,0:goto,0~Locked%20enemies~AwesomeJRFD~1~1;0;0~1~0;0~0;0;3~1389763771~0.4