Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
componentAvailable(type, name)
The type of component.
These constants are not exposed to JS API – see "Notes" section below.
The component name.
Example: "Spade1Mk1"
"Spade1Mk1"
true
false
const COMP_PROPULSION=3; if (componentAvailable(COMP_PROPULSION, "hover01")) { // we can build hovercraft! }
Requires:
Jump to: