Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Getting GasLevel from IMyInventoryItem.

$
0
0
I would like to get GasLevel value from hydrogen bottle. I already found my bottle in a container, so I have a reference to IMyInventoryItem. IMyInventoryItem have a Content property which in this case is an instance of MyObjectBuilder_GasContainerObject. MyObjectBuilder_GasContainerObject have a GasLevel variable that I would like to read, but the type MyObjectBuilder_GasContainerObject isn't allowed in ingame scripts.
Which extensions or interfaces can I use instead?

Viewing all articles
Browse latest Browse all 645

Trending Articles