Space Engineers

Space Engineers

Nanobot Build and Repair System
MiguelRPG 17 MAR 2021 a las 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
< >
Mostrando 1-1 de 1 comentarios
Dummy08  [desarrollador] 15 ABR 2021 a las 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
}
< >
Mostrando 1-1 de 1 comentarios
Por página: 1530 50