Hi.
I'm writing a script (lets call it "ModuleFitted")to be used for ED as a callable object by other scripts. The script will be used in the format: "if ModuleFitted then...". You pass it a parameter ie "docking computer" and, if fitted, it'll return a value of true, else false.
I've got the code already written and I know how to pass the parameter to the script, but how do I get a true/false value back from it? All I can think of is to have the script set a global bool to show the result. It'll work, but ideally, I'd like it to pass the parameter back directly.
Is this even possible? If so, how do I do it?
Cheers.