- persisted mission_root between repositioning - refactored code (new separate files, function move)
18 lines
429 B
Plaintext
18 lines
429 B
Plaintext
#
|
|
# Missions addon
|
|
#
|
|
# Started by Marius_A
|
|
# Started on November 2016
|
|
#
|
|
# Converted to a FlightGear addon by
|
|
# Slawek Mikula, October 2017
|
|
|
|
var main = func( root ) {
|
|
# setting root path to addon
|
|
setprop("/sim/mission/root_path", root);
|
|
|
|
# load scripts
|
|
foreach(var f; ['mission.nas', 'extensions.nas', 'persistence.nas', 'gui.nas', 'utils.nas'] ) {
|
|
io.load_nasal( root ~ "/Nasal/" ~ f, "mission" );
|
|
}
|
|
} |