Summary

public Action<IMyEntity> event OnMarkForClose

Called when Close() is called. Order 1) OnMarkForClose 2) OnClosing 3) OnClose .

Returns

Action

Remarks

Modders should prefer OnMarkForClose or OnClosing . This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed