Space Engineers

Space Engineers

Nanobot Build and Repair System
MiguelRPG 17. mar. 2021 kl. 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
< >
Viser 1-1 af 1 kommentarer
Dummy08  [udvikler] 15. apr. 2021 kl. 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
}
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50