use

abstract fun use(    blockId: BlockId,     functionIndex: Int,     action: Int)

Parameters

blockId

Id of the block.

functionIndex

Index of useObject. First one is 0 and so on.

action

Action flag, to get possible actions of the block, check spaceEngineers.model.UseObject.primaryAction and spaceEngineers.model.UseObject.secondaryAction values.