public override void UpdateAfterSimulation() { try { if (npcCrewBlock == null || npcCrewBlock.Render == null || !npcCrewBlock.InScene || npcCrewBlock.MarkedForClose) { return; } if (npcCrewBlock.IsWorking && npcCrewBlock.IsFunctional) { if (playAnimation) { MoveHead(); MoveLeftArm(); MoveRightArm(); //Controls Boots Emissive (Green) npcCrewBlock.SetEmissivePartsForSubparts("Emissive", Color.Green, 1.0f); } } else { //Controls Boots Emissive (Red) npcCrewBlock.SetEmissivePartsForSubparts("Emissive", Color.Red, 1.0f); } } catch (Exception e) { MyVisualScriptLogicProvider.ShowNotificationToAll("Update Error" + e, 2500, "Red"); } }