Space Engineers

Space Engineers

Not enough ratings
GridTracker
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block
File Size
Posted
3.021 KB
18 Dec, 2023 @ 12:35pm
1 Change Note ( view )

Subscribe to download
GridTracker

Description
Simple mod, access a grids storage component, get using the id of 464edcf2-15d6-4ccc-96a3-e74fcf0ddcfc and if set, it will return a GUID for that grid that is persistent across grid pastes, restarts, etc

var parsedId = Guid.Parse("464edcf2-15d6-4ccc-96a3-e74fcf0ddcfc");
MyModStorageComponentBase storage = grid.Storage;
if (storage == null)
{
return;
}

if (storage.ContainsKey(parsedId))
{
var gridId = Guid.Parse(storage.GetValue(parsedId));
}