Jump to content

ctordtor

Members
  • Posts

    4
  • Joined

  • Last visited

Reputation

0 Neutral
  1. Well that certainly did the trick! Thanks for the reference. Unfortunately, now the KIA portrait is gone. I was really hoping to keep that just to needle the player :-D
  2. In the logs I'm seeing: [Log]: [00:00:00]: Jebediah Kerman was killed. [Log]: [00:00:00]: Bill Kerman was killed. [Log]: [00:00:00]: Bob Kerman was killed. For grins, I added: if(vessel.GetVesselCrew().Remove(c)) print("Removed"); But Removed doesn't show up in the log.
  3. Gave that a shot, doesn't seem to make an effect. The EVA/IVA buttons are still available on their portraits and all of them are able to be revived.
  4. I am calling Die() on a Kerbal, and it shows the KIA message below, however if I click on EVA the Kerbal(s) all come back to life, tried searching didn't really find anything. Sample code: public class TestModule : PartModule { private bool foundCrew; public override void OnStart(StartState state) { print("Hello Kerbin!"); base.OnStart(state); } public override void OnUpdate() { if (foundCrew) return; var crew = vessel.GetVesselCrew(); foreach (var c in crew) { foundCrew = true; StartCoroutine(KillKerbal(c)); } base.OnUpdate(); } private IEnumerator KillKerbal(ProtoCrewMember c) { yield return new WaitForSeconds(5); c.Die(); } }
×
×
  • Create New...