ImportFall utility improves code readability and makes it easier to import FALL
structures. Unlike most structures in this module, importFall is a function,
not an object.
Calling
parameters
type
default
Description
structureName
string
-
what structure do you want to import?
copyToPath*
string
””
where do you want the structure to be copied?
* optional parameters
Code Example
Following code:
Is equivalent to:
Use cases
Let’s assume that you have a bootscript of your rocket looking like this:
It basically copies your main rocket script from 0:/ and runs it locally.
If your “myrocket.ks” script uses FALL, you can run importFall utility in
the boostscript:
This way you can use importFall utility in your main rocket file: