<=[[cw4:cpack:Start| Index]] ====== Kalli - SnappingTool ====== The latest version of this cpack, specifically adapted for vanilla unit placement, can be found in colony map #4708 Downstream River Battle. ===== Purpose ===== The Snapping Tool looks for the nearest suitable cell, within a certain range of the cursor cell. This greatly facilitates unit placement of units on bad/uneven terrain or on terrain with a lot of other units present. ===== Controls ===== * Click LMB (left mouse button) to place 1 unit. * Hold Shift + hold LMB to place multiple units. * Hold Alt + scroll to change the placement range. * Change the range to 0 to disable the snapping tool. ===== Additional Info ===== - A red circle + white cross on the cursor cell means that either you've reached your buid limit, or no suitable cell was found within range. - A green cross highlights the nearest suitable cell, so click LMB and the unit will be placed there. - If you hold the mouse cursor still over a single cell and hold shift+LMB, then it will place 4 units per second. Move the mouse around fast, and it can place up to 30 units per second. - Miners snap to terrain with 75% resource coverage. If you want to place your miners with perfect coverage of the resource patch, then you'll still need to look closely while placing them. - Bomberpads are not yet supported. - Dark Towers are ignored while placing units, but units cannot connect while in the darkness, so they won't be constructed. ===== Adding your own units to the snapping tool ===== At the start of the script, there exists a series of lists to which you should add your unit. It is important that the first 4 lists have the same list length and same order. So to add a new unit, it's best to add the GUID to the end of the first 2 lists + the footprint width (x-axis) + length (z-axis) to the end of the next 2 lists. <=[[cw4:cpack:Start| Index]]