Mindustry

Mindustry

评价数不足
Unit Parking
   
奖励
收藏
已收藏
取消收藏
标签: schematic
文件大小
发表于
更新日期
338.000 B
2021 年 1 月 1 日 上午 12:00
2021 年 1 月 10 日 上午 1:00
3 项改动说明 ( 查看 )

订阅以下载
Unit Parking

描述
"Pins" all units of a specified type to a location, by gathering them at a configurable distance in front of the processor. Works similarly to the Command Center's rally function. Parked units will attack enemies.

How to use
  1. Build behind the desired location, rotating the schematic so that the switch faces away from the direction in which you wish the rally point to be.
  2. Edit logic and select desired unit type in Unit Bind, and (optional) configure distance ("dist" variable).
  3. Press switch to activate.
  4. If you change the distance again, toggle the switch off and on to cause changes to take effect.

Schematic code:
bXNjaAF4nAEtAdL+AAEAAgIABG5hbWUADFVuaXQgUGFya2luZwALZGVzY3JpcHRpb24AAAIABnN3aXRjaAAPbWljcm8tcHJvY2Vzc29yAAAAAgAAAAAACgADAQAAAAEOAAAA1HicVZBLcsMgDEDJqjOcQkeIu8rSy15DDkrtDB9XQAOnT2X8mw6CGZ4eEnBR6uKf2c1wA/rJaIELXHUkHwNDfElM6T520JPHwZLR/2QRHmgj6TxM3kD/sMiyYTTIQJ5cBfTrdFi+CG0a4QrdmtP5HnziYMGFX1o6c5WsjDOTkL8pzVuxdV2VdpEO0L6wxkYiJTBTTNB97i8o5wPKzurJqg4zxDyAKaL2aZxiOVAVs6FmuWwXawlpcZDaYiPLMd7riHqwvZDIWsmXq4/tCkq9339g44FbAU8LfHs=

Uses
  • Sorting units by type
  • Gathering specific unit types for easier commanding
  • Holding specific unit types back from attacking
  • Positioning long range units behind short range units
  • Overriding Command Centers for specific unit types
  • Moving units that ignore Command Centers, such as Monos, Polys, or Megas
  • Recalling units you're having trouble locating due to logic control problems
  • Overriding other logic during testing

Logic
Overrides most other logic by issuing move commands to bound units very frequently.
jump 8 equal rx 0 sensor sw switch1 @enabled jump 8 equal sw false ubind @flare uradar enemy any any maxHealth 0 1 enemy ucontrol move rx ry 0 0 0 ucontrol targetp enemy enemy 0 0 0 jump 1 always 0 0 set dist 12 sensor x switch1 @x sensor y switch1 @y op sub dx x @thisx op sub dy y @thisy op mul dx dx dist op mul dy dy dist op sub rx @thisx dx op sub ry @thisy dy
7 条留言
чемодан с котами 2021 年 4 月 22 日 上午 5:31 
... programmatically
killall -q  [作者] 2021 年 4 月 21 日 下午 8:02 
Click on the Command Center to bring up its mode selection menu.
чемодан с котами 2021 年 4 月 21 日 下午 4:34 
Is there away to actually switch the Command Center between Attack and Rally?
lammaer 2021 年 3 月 7 日 下午 1:02 
Clever idea, good execution, real QoL mod. Well done, this is just what I needed!
Extra props for posting the schematic, for non steamers!
PeLeSki 2021 年 1 月 6 日 上午 3:14 
Thanks! I'll take a look
killall -q  [作者] 2021 年 1 月 5 日 下午 7:22 
For larger units, you can increase the approach radius, so that they will stay farther from the processor, or you can use the distance parking logic.
PeLeSki 2021 年 1 月 5 日 下午 7:19 
I like it a lot. The only problem I find is that units crowd over the switch and I can't get to it to turn it off. Is there any way of getting easier access to the switch if you have a lot of units on it?