Addition to mod API: Grid connected to other grid

Foogs shared this feedback 5 years ago
Submitted

need new event in MyCubeGrid

triggers when a other grid connects to this grid and provide connectedgrid

like:

m_mygrid.OnConnected+= OnConnectedEvent;
public static void OnConnectedEvent(MyCubeGrid othergrid)
{
//other grid are connected to my grid
//triggers when connects via rotors/connectors
}

Leave a Comment
 
Attach a file