Space Engineers

Space Engineers

Nanobot Build and Repair System
MiguelRPG 2021 年 3 月 17 日 上午 9:33
Change Grind Priority by script
Change Grind Priority by script

How to set a group's grind priority by script?

https://prnt.sc/10oczua
< >
正在显示第 1 - 1 条,共 1 条留言
Dummy08  [开发者] 2021 年 4 月 15 日 上午 11:13 
You can take a look into to the Queing Script .
This script is using a class RepairSystemHandler, if you copy this class and it dependencies into you own script you could easly use:
_RepairSystems.SetWeldPriority(RepairSystemHandler.BlockClass.PowerBlock, 1);

The other way would be:
var setPriority = entity.GetValue<Action<int, int>>("BuildAndRepair.SetWeldPriority");
setPriority((int)blockClass, prio);


public enum BlockClass
{
AutoRepairSystem = 1,
ShipController,
Thruster,
Gyroscope,
CargoContainer,
Conveyor,
ControllableGun,
PowerBlock,
ProgrammableBlock,
Projector,
FunctionalBlock,
ProductionBlock,
Door,
ArmorBlock
}
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50