Jump to content

KerbOrbiter

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by KerbOrbiter

  1. @Kerbman Sadly, you should speak ONLY in English, not Russian. Be cool, read the rules. Cool mod, BTW.
  2. @pizza Can you add music (I wrote it's name and link in my previous post) to the default music in your mod? I will be very grateful for that
  3. I've found a bunch of KSP-style music: Space X-plorers, Ominous Intro, Transition One, Earth Prelude, Dark Pad. All of this can be found in the "Wonders of Other Worlds" collection.
  4. Can you also make the DShK heavy machine gun and RS-82 (132) unguided rocket, please? Here's the links: http://en.wikipedia.org/wiki/DShK http://en.wikipedia.org/wiki/RS-82_(rocket_family)
  5. Thank you again! I'm just doing this plugin at leisure using my Java knowledge and a bit of knowledge about C #, so I'm now just learn the language.Ñ I know what compiler writes me, I'm just talking in Russian.
  6. using System; using UnityEngine; using KSP; public class ModuleAutomatedLight : PartModule { bool isActive; public override void OnAwake() { Debug.Log("Part with ModuleAutomatedLight succesfully loaded."); } public override void OnUpdate () { isActive = false; if (isActive == false && FlightIntegrator.underDirectSunlight == true) //error! { Vessel.ActionGroups.SetGroup(KSPActionGroup.Light, true); //error! isActive = true; }else if (isActive == true && FlightIntegrator.underDirectSunlight == false) //error! { Vessel.ActionGroups.SetGroup(KSPActionGroup.Light, false); //error! isActive = false; } } } Mono returns 4 errors to me. I did not write errors because MonoDevelop wrote them in Russian (something about links and unstatic fields). Why, I do not know.
  7. using System; using UnityEngine; using KSP; public class ModuleAutomatedLight : PartModule { bool isActive; public override void OnAwake() { Debug.Log("Part with ModuleAutomatedLight succesfully loaded."); } public override void OnUpdate () { isActive = false; if (isActive == false && FlightIntegrator.underDirectSunlight == true) //error! { Vessel.ActionGroups.SetGroup(KSPActionGroup.Light, true); //error! isActive = true; }else if (isActive == true && FlightIntegrator.underDirectSunlight == false) //error! { Vessel.ActionGroups.SetGroup(KSPActionGroup.Light, false); //error! isActive = false; } } } Mono returns 4 errors to me. I did not write errors because MonoDevelop wrote them in Russian. Why, I do not know.
  8. Is there a method that returns true or false, depending on lightness? I mean that when the part / vessel illuminated by the Sun, the method returns true, and vice versa.
  9. I mean that when the part / vessel illuminated by the Sun, the method returns true, and vice versa.
  10. Thanks Michael! âo avoid doing a lot of topics, I'll ask here: is there a method that returns true or false, depending on lightness?
  11. Is there a method to activate action group? Something like this: void actionGroupActivate(string name);
  12. Can you add a function to turn off the action group when the part is not visible to the Sun, like this: MODULE { name = ResGen useToggle = true INPUT { name = ResGen.Sunlight rate = 1 } ACTIONGROUP { groupName = "Lights" \\ name of the action group that will be enabled resourceName = ResGen.Sunlight \\ name of the consumed resource isInverted = true \\ if true, automated action group enabling will be inverted } } This is how I imagine the part of .cfg for my automated lantern.
  13. Sounds interesting... (Hi KAPbl4:wink:)
×
×
  • Create New...