Space Engineers

Space Engineers

Nanobot Build and Repair System
MiguelRPG 17 Mar, 2021 @ 9:33am
Change Grind Priority by script
Change Grind Priority by script

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

https://prnt.sc/10oczua
< >
Showing 1-1 of 1 comments
Dummy08  [developer] 15 Apr, 2021 @ 11:13am 
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
}
< >
Showing 1-1 of 1 comments
Per page: 1530 50