Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers
This page relates to Immersive Intelligence, which has built-in support!

Machinegun

The Machinegun package can be used to tweak coolant fluids accepted by the Immersive Intelligence Machinegun.

Importing the Package

script.zs
import mods.immersiveintelligence.Machinegun;

Adding/Setting a Coolant

Parameters

TypeNameRequired
Type
ILiquidStack
Name
Coolant
Required
Yes
Type
int
Name
Amount
Required
Yes

Syntax

script.zs
mods.immersiveintelligence.Machinegun.addCoolant(ILiquidStack fuelEntry, int amountPerUse);
mods.immersiveintelligence.Machinegun.setCoolAmount(ILiquidStack fuelEntry, int amountPerUse);

The methods accept the same parameters, but they serve different purposes.
To register a new Coolant use addCoolant, to change the value for an existing one use setCoolAmount.

Example

script.zs
mods.immersiveintelligence.Machinegun.addCoolant(<fluid:milk>, 20);
mods.immersiveintelligence.Machinegun.setCoolAmount(<fluid:water>, 5);

Removing a Coolant

Parameters

TypeNameRequired
Type
ILiquidStack
Name
Coolant
Required
Yes

Syntax

script.zs
mods.immersiveintelligence.Machinegun.removeCoolant(ILiquidStack fuelEntry;

Example

script.zs
mods.immersiveintelligence.Machinegun.removeCoolant(<fluid:water>);